Add staging environment to deployer config
This commit is contained in:
+28
-12
@@ -23,17 +23,7 @@ add('shared_dirs', [
|
|||||||
'config/sites',
|
'config/sites',
|
||||||
]);
|
]);
|
||||||
|
|
||||||
host('185.237.67.190')
|
$rsyncOptions = [
|
||||||
->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', [
|
|
||||||
'exclude' => [
|
'exclude' => [
|
||||||
'.ddev',
|
'.ddev',
|
||||||
'.DS_Store',
|
'.DS_Store',
|
||||||
@@ -64,10 +54,36 @@ host('185.237.67.190')
|
|||||||
'flags' => 'rz',
|
'flags' => 'rz',
|
||||||
'options' => ['delete', 'links'],
|
'options' => ['delete', 'links'],
|
||||||
'timeout' => 300,
|
'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')
|
->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', [
|
task('deploy', [
|
||||||
'deploy:info',
|
'deploy:info',
|
||||||
'deploy:prepare',
|
'deploy:prepare',
|
||||||
|
|||||||
Reference in New Issue
Block a user