From d34b80f3f2b11d438a6fec3a9f5d7151d7190670 Mon Sep 17 00:00:00 2001 From: "Dr. Ulrich Thomas Gabor" Date: Thu, 18 Apr 2024 17:24:58 +0200 Subject: [PATCH] Shopware: Added `deploy:update_code` (#3816) Added an exemplary `deploy:update_code` task. --- recipe/shopware.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/recipe/shopware.php b/recipe/shopware.php index aadf9b71..763566e1 100644 --- a/recipe/shopware.php +++ b/recipe/shopware.php @@ -148,6 +148,16 @@ task('deploy', [ 'deploy:publish', ]); +task('deploy:update_code')->setCallback(static function () { + upload('.', '{{release_path}}', [ + 'options' => [ + '--exclude=.git', + '--exclude=deploy.php', + '--exclude=node_modules', + ], + ]); +}); + task('sw-build-without-db:get-remote-config', static function () { if (!test('[ -d {{current_path}} ]')) { return;