From d27ff7d5745363f6f68ce52ced5eb2f6ec088496 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A1vid=20Danyi?= Date: Thu, 4 Oct 2018 15:42:58 +0200 Subject: [PATCH] * mtas prod deploy --- deploy.php | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/deploy.php b/deploy.php index ef9c8e1..b0179f9 100644 --- a/deploy.php +++ b/deploy.php @@ -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');