for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Deployer;
require 'recipe/symfony4.php';
set('application', 'owncourses');
set('default_stage', 'demo');
set('env', static function () {
return [
'APP_ENV' => has('symfony_env') ? get('symfony_env') : 'prod',
];
});
set('repository', '[email protected]:owncourses/courses-server.git');
set('git_tty', true);
set('shared_files', [
'.env.local',
'.env.local.php',
'config/jwt/private.pem',
'config/jwt/public.pem',
]); // reset sharing .env
inventory('hosts.yml');
inventory
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
ignore-call
/** @scrutinizer ignore-call */
task('deploy:assets:install', static function () {
task
run('{{bin/console}} ckeditor:install');
run('{{bin/console}} assets:install {{release_path}}/public');
})->desc('Install bundle assets');
after('deploy:symlink', 'deploy:assets:install');
after
task('deploy:composer:dump-env', static function () {
run('cd {{release_path}} && {{bin/composer}} symfony:dump-env prod');
after('deploy:symlink', 'deploy:composer:dump-env');
after('deploy:failed', 'deploy:unlock');
before('deploy:symlink', 'database:migrate');