diff --git a/docs/recipe/shopware.md b/docs/recipe/shopware.md index 5aee7d60c..ebdae6ea3 100644 --- a/docs/recipe/shopware.md +++ b/docs/recipe/shopware.md @@ -301,7 +301,7 @@ This task is group task which contains next tasks: ### sw-build-without-db\:build {#sw-build-without-db-build} -[Source](https://github.com/deployphp/deployer/blob/master/recipe/shopware.php#L193) +[Source](https://github.com/deployphp/deployer/blob/master/recipe/shopware.php#L197) @@ -309,7 +309,7 @@ This task is group task which contains next tasks: ### sw-build-without-db {#sw-build-without-db} -[Source](https://github.com/deployphp/deployer/blob/master/recipe/shopware.php#L197) +[Source](https://github.com/deployphp/deployer/blob/master/recipe/shopware.php#L201) diff --git a/recipe/shopware.php b/recipe/shopware.php index 0b7e35e5a..3d383007a 100644 --- a/recipe/shopware.php +++ b/recipe/shopware.php @@ -181,6 +181,10 @@ function getPlugins(): array if (!test('[ -d {{current_path}} ]')) { return; } + // Copy .env files into build directory so we don't default to APP_ENV=dev and APP_DEBUG=1 during build + download("{{current_path}}/", "./", [ + "options" => ["--copy-links", "--include=.env*", "--exclude=*"], + ]); within('{{current_path}}', function () { run('{{bin/php}} ./bin/console bundle:dump'); download('{{current_path}}/var/plugins.json', './var/');