Running plugin update for " . $plugin['Plugin'] . "\n"); run("cd {{release_path}} && {{bin/console}} plugin:update " . $plugin['Plugin']); } } }); task('sw:writable:jwt', static function () { run('cd {{release_path}} && chmod -R 660 config/jwt/*'); }); /** * Grouped SW deploy tasks. */ task('sw:deploy', [ 'sw:database:migrate', 'sw:plugin:refresh', 'sw:theme:refresh', 'sw:cache:clear', 'sw:plugin:update:all', 'sw:cache:clear', ]); desc('Deploys your project'); task('deploy', [ 'deploy:prepare', 'sw:deploy', 'deploy:clear_paths', 'sw:cache:warmup', 'sw:writable:jwt', 'deploy:publish', ]); task('sw-build-without-db:get-remote-config', static function () { if (!test('[ -d {{current_path}} ]')) { return; } within('{{deploy_path}}/current', function () { run('{{bin/php}} ./bin/console bundle:dump'); download('{{deploy_path}}/current/var/plugins.json', './var/'); run('{{bin/php}} ./bin/console theme:dump'); download('{{deploy_path}}/current/files/theme-config', './files/'); }); }); task('sw-build-without-db:build', static function () { runLocally('CI=1 SHOPWARE_SKIP_BUNDLE_DUMP=1 ./bin/build-js.sh'); }); task('sw-build-without-db', [ 'sw-build-without-db:get-remote-config', 'sw-build-without-db:build', ]); before('deploy:update_code', 'sw-build-without-db');