sub_directory not working after 7.4 #4253
Replies: 1 comment
|
Thanks for the report — this isn't a regression in deploy:update_code itself, it's the Shopware recipe. Since v7.4.1, recipe/shopware.php replaces the core deploy:update_code task with an rsync upload of your local working directory: task('deploy:update_code')->setCallback(static function () { That was added in #3816. Because it never touches git, it ignores sub_directory, and also repository, update_code_strategy, --branch/--tag/--revision, and As a workaround, restore the git-based task in your deploy.php after requiring the recipe: require 'recipe/shopware.php'; Note this also removes the before('deploy:update_code', 'sw-build-without-db') hook, so if you rely on the local build-without-database flow you'll need to We'll look at either removing the override or making it opt-in, since it silently changes the deployment strategy for every Shopware user. |
Uh oh!
There was an error while loading. Please reload this page.
Deployer Version
Target OS
Ubuntu
Which PHP version are you using?
PHP 8.4
Content of deploy.php or deploy.yaml
No response
Steps to reproduce
I am deploying shopware 6 project.
Since there are multiple files and directories in the project root, I always used "sub_directory" to deploy only the necessary source code. Until 7.3.x it worked all fine. When I try to update to >= 7.4.x Deployer always deploys the repository root and therefore throws some errors. After downgrade to 7.3.x it works all fine again.
Even with version 8.x it does not work
All reactions