* mtas prod deploy

This commit is contained in:
Dávid Danyi 2018-10-04 15:42:58 +02:00
parent 15455f648e
commit d27ff7d574

View File

@ -23,12 +23,19 @@ set('keep_releases', 3);
set('default_stage', 'production');
// Servers
host('vasgyuro.tsp')
// Servers - mtas : esekivws5222a.rnd.ki.sw.ericsson.se
host('mtas')
->stage('production')
->user('edvidan')
->forwardAgent()
->set('php_service_name', 'php7.1-fpm')
->set('deploy_path', '/proj/webdocs/mtoolbox/root/mtastv-api');
host('vasgyuro.tsp')
->stage('staging')
->user('edvidan')
->forwardAgent()
->set('php_service_name', 'php7.1-fpm')
->set('deploy_path', '/home/edvidan/applications/mtastv-api');
@ -37,8 +44,8 @@ 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:reload');
});
after('deploy:symlink', 'php-fpm:reload')->onlyOn('vasgyuro.tsp');
desc('Deploy your project');