Add staging environment to deployer config
This commit is contained in:
+28
-12
@@ -23,17 +23,7 @@ add('shared_dirs', [
|
||||
'config/sites',
|
||||
]);
|
||||
|
||||
host('185.237.67.190')
|
||||
->stage('production')
|
||||
->user('p546128')
|
||||
->forwardAgent()
|
||||
->multiplexing()
|
||||
->set('deploy_path', '/home/www/p546128/html/{{application}}')
|
||||
->set('bin/php', '/usr/local/bin/php')
|
||||
->set('http_user', 'p546128')
|
||||
->set('bin/composer', '/usr/local/bin/composer')
|
||||
->set('rsync_src', __DIR__)
|
||||
->set('rsync', [
|
||||
$rsyncOptions = [
|
||||
'exclude' => [
|
||||
'.ddev',
|
||||
'.DS_Store',
|
||||
@@ -64,10 +54,36 @@ host('185.237.67.190')
|
||||
'flags' => 'rz',
|
||||
'options' => ['delete', 'links'],
|
||||
'timeout' => 300,
|
||||
])
|
||||
];
|
||||
|
||||
host('185.237.67.190')
|
||||
->stage('production')
|
||||
->user('p546128')
|
||||
->forwardAgent()
|
||||
->multiplexing()
|
||||
->set('deploy_path', '/home/www/p546128/html/{{application}}')
|
||||
->set('bin/php', '/usr/local/bin/php')
|
||||
->set('http_user', 'p546128')
|
||||
->set('bin/composer', '/usr/local/bin/composer')
|
||||
->set('rsync_src', __DIR__)
|
||||
->set('rsync', $rsyncOptions)
|
||||
->set('cachetool_args', '--web=SymfonyHttpClient --web-path={{release_path}}/public/ --web-url=https://www.ep-reisen.de')
|
||||
;
|
||||
|
||||
host('185.237.67.190')
|
||||
->stage('staging')
|
||||
->user('p546128')
|
||||
->forwardAgent()
|
||||
->multiplexing()
|
||||
->set('deploy_path', '/home/www/p546128/html/{{application}}-staging')
|
||||
->set('bin/php', '/usr/local/bin/php')
|
||||
->set('http_user', 'p546128')
|
||||
->set('bin/composer', '/usr/local/bin/composer')
|
||||
->set('rsync_src', __DIR__)
|
||||
->set('rsync', $rsyncOptions)
|
||||
->set('cachetool_args', '--web=SymfonyHttpClient --web-path={{release_path}}/public/ --web-url=https://staging.ep-reisen.de')
|
||||
;
|
||||
|
||||
task('deploy', [
|
||||
'deploy:info',
|
||||
'deploy:prepare',
|
||||
|
||||
Reference in New Issue
Block a user