Shopware: Added deploy:update_code (#3816)

Added an exemplary `deploy:update_code` task.
This commit is contained in:
Dr. Ulrich Thomas Gabor 2024-04-18 17:24:58 +02:00 committed by GitHub
parent 682d48a8a9
commit d34b80f3f2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;