762 Commits

Author SHA1 Message Date
Anton Medvedev
84aeb11f8c Fix typo 2021-09-24 15:19:15 +02:00
Anton Medvedev
fef85caf5f Improve shared.php 2021-09-24 15:15:00 +02:00
Anton Medvedev
38fb8a753d Improve update_code.php ssh-keygen 2021-09-24 15:08:42 +02:00
Anton Medvedev
94a2e7ab6c Trim instead of error 2021-09-24 14:07:48 +02:00
Anton Medvedev
b724073157 Fix code style 2021-09-24 10:58:53 +02:00
Anton Medvedev
14879da60b Update setup.php 2021-09-24 10:49:16 +02:00
Anton Medvedev
9ae2b96c23 Fix code style 2021-09-24 10:46:32 +02:00
Anton Medvedev
91fbb66b0f Use -af in copy_dirs 2021-09-24 10:45:28 +02:00
Anton Medvedev
ea65989760 Update check_remote.php 2021-09-24 00:17:11 +02:00
Anton Medvedev
64106049e5 Move option target to common.php 2021-09-24 00:11:45 +02:00
Dominik
6173fe0904
Create Recipe for Pimcore (#2611)
* Create Recipe for Pimcore

* Update pimcore.php

* add pimcore-docs

* update pimcore recipe to include new tasks into deploy automatically

* update pimcore recipe to include new tasks into deploy automatically
2021-09-23 19:06:25 +02:00
Goran Jurić
6b2a81950f
Use cp instead of rsync to copy directories (#2659)
* Use cp instead of rsync to copy directories

Since rsync is not installed on every host it's better to use standard tools.
Previosly rsync was introduced ( #1072 ) to enable copying of subdirectories, but
this is doable with cp as well.

* Throw an exception if copy_dirs entries end with a slash

* Fix to strip last directory name from the destination folder

* Update CHANGELOG.md

Co-authored-by: Anton Medvedev <anton@medv.io>
2021-09-23 19:03:17 +02:00
Sander Toonen
1c8e23f00a
Use build in php-function to detect scheme, hostname and port in repo url (#2668)
* Use PHP biuld in funtion to detect scheme, hostname and port in repo url. refs #2667

* Updated changelog

* Add missing reference to changelog

* Unrelated issue, in order to make phpstan happy.
2021-09-23 18:58:57 +02:00
Anton Medvedev
d14c65c5dd Update release/rollback logic 2021-09-23 02:09:55 +02:00
Anton Medvedev
8c7ddf09c2 Use json instead of csv for releases metainfo 2021-09-20 00:32:34 +02:00
Anton Medvedev
bc4ed1a38a Move Cvs to utils 2021-09-18 15:25:48 +02:00
memen45
fd1be9baa6
Update writable.php (#2648)
Silence the errors from chgrp. Will not interrupt deploy process in case the group ownership is already correct, but user is different.
2021-09-11 17:40:01 +02:00
Anton Medvedev
463d95de78 Improve docgen 2021-08-31 20:15:06 +02:00
Alex Mayer
4bd32d8ead
Add Port When Running SSH Keyscan (#2551)
Fixes #2549

Co-authored-by: Fabian Blechschmidt <github@fabian-blechschmidt.de> (fixed conflicts, took to long to merge 🤷)
2021-08-20 11:17:01 +02:00
Jonas Siewertsen
14f20257be
Add statamic recipe (#2627)
* Add a statamic recipe
* Update CHANGELOG.md
* Add doc recipe for Statamic
2021-08-20 11:10:46 +02:00
Marcel
f42e8faabd
Fix typo in comment (#2624)
The $bare variable points to ".dep/repo" and not ".git/repo"
2021-08-18 08:42:58 +02:00
David
d5b8ee78a6
use release_or_current_path instead of release_path for sw:plugin:upgrade:all in shopware recipe (#2610) 2021-07-27 12:09:26 +02:00
Fabian Blechschmidt
515eac3c0a
DRAFT: First activate plugins/themes THEN build them (#2607)
* First activate plugins/themes THEN build them

Currently the first step is to run bin/build.sh which builds all *ACTIVATED* themes. After this step we activate all composer-registered plugins (which in my case are all the themes) and THEN compile them. For new themes that means, that they are *NOT* build because they are activated AFTER building.

This PR fixes that and activated first and builds second.

* update changelog
2021-07-22 15:40:40 +02:00
Tobias Schultze
239b817540
Fix symfony cache:clear running twice on deployment (#2602)
* Fix symfony cache:clear running twice on deployment

Any standard symfony app is running cache:clear on composer install ever since.
I.e. in composer.json

```
"scripts": {
    "auto-scripts": {
      "cache:clear": "symfony-cmd",
      "assets:install %PUBLIC_DIR%": "symfony-cmd"
    },
    "post-install-cmd": [
      "@auto-scripts"
    ],
    "post-update-cmd": [
      "@auto-scripts"
    ]
  },
```

This prevents cache clearing being run twice for no reason.

* regenerate doc
2021-07-15 23:20:44 +03:00
Fabian Blechschmidt
784e7b7b31
Fixes #2574 (#2575) 2021-06-09 23:52:53 +03:00
Jeffrey Cafferata
a38a01615e
Update GIT remote origin (#2520)
Changed the way the GIT remote URL is fetched from the config.
2021-04-22 19:14:09 +02:00
Anton Medvedev
817a6b3cd8 Remove dump-env 2021-04-21 00:39:41 +02:00
Anton Medvedev
da8bb1adff Fix deploy:update_code
Now default target is HEAD, also better at switching repository url.
2021-04-18 13:54:31 +02:00
Anton Medvedev
c23688adcf Add default symfony_env 2021-04-17 15:41:12 +02:00
Victor Paumier
63a0e667b7
add deploy:dump-env & remove .env.local.php from shared_files (#2507) 2021-04-16 12:13:58 +03:00
Rick Schippers
b212b83e67
Bugfix shopware recipe plugin updates (#2414)
* removed incorrect duplicate version column

Output is as follows so:

$plugin,$label,$version,$upgrade,$author,$installed,$active,$upgradeable,

Shopware Plugin Service
=======================

 ------------------- --------------------------------------------------------- --------- ----------------- --------------------------- ----------- -------- -------------
  Plugin              Label                                                     Version   Upgrade version   Author                      Installed   Active   Upgradeable
 ------------------- --------------------------------------------------------- --------- ----------------- --------------------------- ----------- -------- -------------
  BuckarooPayments    Buckaroo Payment                                          1.1.1                       Buckaroo                    Yes         Yes      No
  DevTools            Additional tools to support your Shopware 6 development   0.2.0                       Maurits Meester             Yes         Yes      No

* Invoke sw:plugin:refresh inside sw:plugin:activate:all instead of incorrectly redefining it

* Upgrade all plugins that are upgradeable

* Changelog update

* Ran docgen

* Do NOT make upgrading all default

* Update doc

Co-authored-by: Fabian Blechschmidt <github@fabian-blechschmidt.de>
Co-authored-by: Fabian Blechschmidt <blechschmidt@fabian-blechschmidt.de>
2021-04-13 15:31:51 +02:00
memen45
85ba976307
Update magento2.php (#2452)
Fixes failed deploys when app/etc/config.php is changed with added sites, stores, store views or themes.

Co-authored-by: Fabian Blechschmidt <github@fabian-blechschmidt.de>
2021-04-11 16:49:46 +02:00
Loris Leiva
a313326911
Fix ACL error message (#2501)
* Fix ACL error message

* Update CHANGELOG.md
2021-04-11 16:45:55 +02:00
Loris Leiva
4b1a5f7c57
Add artisan tasks that generate keys (#2490)
Co-Authored-By: Kundan <198781+kundancool@users.noreply.github.com>

Co-authored-by: Kundan <198781+kundancool@users.noreply.github.com>
Co-authored-by: Anton Medvedev <anton@medv.io>
2021-04-04 21:11:38 +02:00
Loris Leiva
56477d1b41
Tidy artisan commands (#2488)
* Remove deploy:public_disk task

Redundant since this can be achieved with the `artisan:storage:link` task since 5.3.

5.2 support was dropped in June 2016 so it is safe to stop supporting it ourselves.

* Remove publish artisan commands

These commands are made to generate some code that should then be committed and pushed. These should never be needed directly in production.

* Add and rename artisan tasks

* Refactor artisan command registration

* Revert "Refactor artisan command registration"

Doesn't work nicely with docgen 😭

* Update laravel.md
2021-04-04 20:12:39 +03:00
Loris Leiva
7627f9ba43
Add and use new release_or_current_path (#2486)
* Add release_or_current_path option

* Use new path in platform-specific recipes

* Update CHANGELOG.md
2021-04-03 15:05:45 +03:00
Anton Medvedev
e7a27dff7e Refactor push task 2021-03-16 22:08:27 +01:00
Anton Medvedev
696893e7e2 Return cleanup_use_sudo 2021-03-15 22:12:13 +01:00
Anton Medvedev
19ce13a49b Fix revision saving on macos 2021-03-15 21:53:46 +01:00
Anton Medvedev
a200c1f9b0
Refactor deploy:update_code (#2461) 2021-03-15 01:35:06 +03:00
Anton Medvedev
2205921bae Revert rename 2021-03-14 08:44:14 +01:00
Anton Medvedev
458d7b621f Rename fail() to onfail() 2021-03-13 22:03:49 +01:00
Fabian Blechschmidt
5d0893fa84
Normalize shopware recipe and add common.php (#2422)
* Normalize shopware recipe and add common.php
2021-03-08 13:53:51 +01:00
ThaDaVos
4ac6e131cc
Fix for issue #2407 - Laravel migrations are only run on the first host due there being a ->once on the task (#2408)
Fix for issue #2407 - Laravel migrations are only run on the first host due there being a `->once` on the task
2021-03-07 12:12:44 +01:00
Dennis Smink
27c7b6182c
Check (shared) file exists (#2393)
* Check (shared) file exists
* Update CHANGELOG.md
2021-03-05 12:51:00 +01:00
Simon Sprankel
cfc3ecbde4
Fix formatting (#2443)
* Fix formatting

* Fix formatting
2021-03-05 11:51:18 +01:00
Peter Jaap Blaakmeer
d7d5a01674
Remove config/jwt from writable dirs list (#2430)
config/jwt should have chmod 600, not 755
2021-02-23 17:11:08 +01:00
Fabian Blechschmidt
f5c9a92b1d
Feature/2423 shopware order modules (#2425)
* #2423 shopware: task sw:plugin:activate:all runs migration script in wrong order

- add dependency for polyfill (to use str_ends_with)
- marcj/topsort (for sorting the shopware modules)

* #2423 shopware: task sw:plugin:activate:all runs migration script in wrong order

- get the plugin list
- read the composer names and dependencies from composer.lock
- order by dependencies
- use sorted list for activation and migration

* #2423 shopware: task sw:plugin:activate:all runs migration script in wrong order

Update changelog

* #2423 shopware: task sw:plugin:activate:all runs migration script in wrong order

do not update doc, but remove require autoload.php
2021-02-23 08:50:46 +01:00
Rick Schippers
c714d10356
Shopware recipe - fix invalid parsing of plugin:list and invoke nested sw:plugin:refresh instead of redefining it (#2419)
* Removed incorrect duplicate version column

* Invoke nested task instead of incorrectly redefining it, so it actually runs.

* Changelog updated
2021-02-19 11:45:15 +01:00
lukepass
367c9bf723
Local composer should take precedence over global composer (#2371)
Co-authored-by: Luca Passini <l.passini@melazeta.com>
2021-01-13 13:26:35 +03:00