Skip to content

Commit d34b80f

Browse files
Shopware: Added deploy:update_code (#3816)
Added an exemplary `deploy:update_code` task.
1 parent 682d48a commit d34b80f

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

recipe/shopware.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,16 @@ function getPlugins(): array
148148
'deploy:publish',
149149
]);
150150

151+
task('deploy:update_code')->setCallback(static function () {
152+
upload('.', '{{release_path}}', [
153+
'options' => [
154+
'--exclude=.git',
155+
'--exclude=deploy.php',
156+
'--exclude=node_modules',
157+
],
158+
]);
159+
});
160+
151161
task('sw-build-without-db:get-remote-config', static function () {
152162
if (!test('[ -d {{current_path}} ]')) {
153163
return;

0 commit comments

Comments
 (0)