* flag defaults
* added 2 extra flags * deploy now restarts php-fpm to clear opcode cache
This commit is contained in:
16
deploy.php
16
deploy.php
@@ -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', [
|
||||
|
||||
Reference in New Issue
Block a user