get('sentry_organization'), 'token' => get('sentry_token'), 'projects' => get('sentry_projects'), 'version' => getReleaseVersion(), 'commits' => getCommitsInformation() ]); /** Execution */ task('deploy', [ 'deploy:confirm', // Upload server specific .env.local file. Those files are NOT to be committed to the repository 'app:test:phpunit', 'server:upload_env', 'deploy:info', 'deploy:prepare', 'deploy:lock', 'deploy:release', 'deploy:update_code', 'deploy:clear_paths', 'deploy:shared', // build and upload assets 'app:assets:deploy', // copy vendors folder between releases before running composer install to speed it up 'deploy:copy_dirs', 'deploy:vendors', // build graphql schema 'app:graphql:generate', //'deploy:assets:install', 'deploy:sentry:symfony', 'deploy:sentry', 'git:tag:add', 'deploy:cache:clear', 'deploy:cache:warmup', 'deploy:writable', // Migrate database before symlink new release. // 'database:migrate', // Optional: if the project uses kaliop migrations 'database:kaliop:migrate', 'deploy:symlink', // Netgen specific setup, comment out what's not needed 'server:symlink_public', 'cachetool:clear:opcache', // Cleanup and finish the deploy 'deploy:unlock', 'cleanup', ])->desc('Deploy your project'); // after successful deploy after('deploy', 'httpcache:invalidate'); after('deploy', 'deploy:log:remote'); after('deploy', 'success'); // If deploy fails automatically unlock. after('deploy:failed', 'deploy:unlock'); after('rollback', 'cachetool:clear:opcache'); after('rollback', 'httpcache:invalidate'); after('rollback', 'deploy:log:rollback:remote');