* flag defaults

* added 2 extra flags
* deploy now restarts php-fpm to clear opcode cache
This commit is contained in:
Dávid Danyi
2017-02-21 16:26:14 +01:00
parent e1811d8d8e
commit 2814f4f98e
2 changed files with 75 additions and 25 deletions

View File

@@ -20,24 +20,24 @@ set('writable_dirs', []);
set('keep_releases', 3);
set('default_stage', 'production');
// Servers
// Servers
server('vasgyuro', 'vasgyuro.tsp')
->stage('production')
->user('edvidan')
->forwardAgent()
// ->set('php_service_name', 'php7.1-fpm')
->set('php_service_name', 'php7.1-fpm')
->set('deploy_path', '/home/edvidan/applications/daily-ci-api');
/*
desc('Restart PHP-FPM service');
task('php-fpm:restart', function () {
desc('Reload PHP-FPM service');
task('php-fpm:reload', function () {
// The user must have rights for restart service
// /etc/sudoers: username ALL=NOPASSWD:/bin/systemctl restart php-fpm.service
run('sudo service {{php_service_name}} reload');
})->onlyOn('alfheim');
after('deploy:symlink', 'php-fpm:restart');
*/
}); //->onlyOn('alfheim');
after('deploy:symlink', 'php-fpm:reload');
desc('Deploy your project');
task('deploy', [