* deployer config added
* baseuri helper middleware added
This commit is contained in:
54
deploy.php
Normal file
54
deploy.php
Normal file
@@ -0,0 +1,54 @@
|
||||
<?php
|
||||
namespace Deployer;
|
||||
require 'recipe/common.php';
|
||||
|
||||
// Configuration
|
||||
|
||||
set('repository', 'https://gogs.ragnarok.yvan.hu/TSP/daily-ci-api.git');
|
||||
set('shared_files', [
|
||||
'config/autoload/local.php',
|
||||
'config/autoload/doctrine.local.php',
|
||||
// 'config/autoload/errorhandler.local.php',
|
||||
]);
|
||||
//set('shared_dirs', [
|
||||
// 'data/attachments',
|
||||
//]);
|
||||
set('writable_dirs', []);
|
||||
set('keep_releases', 3);
|
||||
set('default_stage', 'production');
|
||||
|
||||
// Servers
|
||||
|
||||
server('vasgyuro', 'vasgyuro.tsp')
|
||||
->stage('production')
|
||||
->user('edvidan')
|
||||
->forwardAgent()
|
||||
// ->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 () {
|
||||
// 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');
|
||||
*/
|
||||
|
||||
desc('Deploy your project');
|
||||
task('deploy', [
|
||||
'deploy:prepare',
|
||||
'deploy:lock',
|
||||
'deploy:release',
|
||||
'deploy:update_code',
|
||||
'deploy:shared',
|
||||
'deploy:writable',
|
||||
'deploy:vendors',
|
||||
'deploy:clear_paths',
|
||||
'deploy:symlink',
|
||||
'deploy:unlock',
|
||||
'cleanup',
|
||||
]);
|
||||
|
||||
after('deploy', 'success');
|
||||
Reference in New Issue
Block a user