From c033c908e1601088fec8b1fac09a3590c468454c Mon Sep 17 00:00:00 2001 From: "Dr. Ulrich Thomas Gabor" Date: Thu, 18 Apr 2024 15:06:17 +0200 Subject: [PATCH] Shopware: Added `deploy:update_code` 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 aadf9b71f..763566e10 100644 --- a/recipe/shopware.php +++ b/recipe/shopware.php @@ -148,6 +148,16 @@ function getPlugins(): array '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;