setPort(2004) ->set('remote_user', 'deploy') ->set('deploy_path', '/var/www/demo.domainwatchdog.eu'); desc('Build frontend'); task('front:build', function () { run("cd {{release_or_current_path}} && yarn install --no-dev && yarn run build && yarn run ttag:po2json && rm -rf node_modules"); }); desc('Restart workers'); task('workers:restart', function () { run("cd {{release_or_current_path}} && bin/console messenger:stop-workers"); }); // Hooks after('deploy:failed', 'deploy:unlock'); after('deploy:vendors', 'database:migrate'); after('deploy:vendors', 'front:build'); after('deploy:unlock', 'workers:restart');