* mtas prod deploy
This commit is contained in:
parent
15455f648e
commit
d27ff7d574
15
deploy.php
15
deploy.php
@ -23,12 +23,19 @@ set('keep_releases', 3);
|
|||||||
set('default_stage', 'production');
|
set('default_stage', 'production');
|
||||||
|
|
||||||
|
|
||||||
// Servers
|
// Servers - mtas : esekivws5222a.rnd.ki.sw.ericsson.se
|
||||||
host('vasgyuro.tsp')
|
host('mtas')
|
||||||
->stage('production')
|
->stage('production')
|
||||||
->user('edvidan')
|
->user('edvidan')
|
||||||
->forwardAgent()
|
->forwardAgent()
|
||||||
->set('php_service_name', 'php7.1-fpm')
|
->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');
|
->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
|
// The user must have rights for restart service
|
||||||
// /etc/sudoers: username ALL=NOPASSWD:/bin/systemctl restart php-fpm.service
|
// /etc/sudoers: username ALL=NOPASSWD:/bin/systemctl restart php-fpm.service
|
||||||
run('sudo service {{php_service_name}} reload');
|
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');
|
desc('Deploy your project');
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user