Add staging environment to deployer config
This commit is contained in:
+48
-32
@@ -23,6 +23,39 @@ add('shared_dirs', [
|
|||||||
'config/sites',
|
'config/sites',
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
$rsyncOptions = [
|
||||||
|
'exclude' => [
|
||||||
|
'.ddev',
|
||||||
|
'.DS_Store',
|
||||||
|
'.git',
|
||||||
|
'.github',
|
||||||
|
'.idea',
|
||||||
|
'node_modules',
|
||||||
|
'public/fileadmin',
|
||||||
|
'public/typo3temp',
|
||||||
|
'public/uploads',
|
||||||
|
'var',
|
||||||
|
'.editorconfig',
|
||||||
|
'.gitignore',
|
||||||
|
'.htaccess_prod',
|
||||||
|
'deploy.php',
|
||||||
|
'package.json',
|
||||||
|
'package-lock.json',
|
||||||
|
'postcss.config.js',
|
||||||
|
'tailwind.config.js',
|
||||||
|
'webpack.config.js',
|
||||||
|
],
|
||||||
|
'exclude-file' => false,
|
||||||
|
'include' => [],
|
||||||
|
'include-file' => false,
|
||||||
|
'filter' => [],
|
||||||
|
'filter-file' => false,
|
||||||
|
'filter-perdir' => false,
|
||||||
|
'flags' => 'rz',
|
||||||
|
'options' => ['delete', 'links'],
|
||||||
|
'timeout' => 300,
|
||||||
|
];
|
||||||
|
|
||||||
host('185.237.67.190')
|
host('185.237.67.190')
|
||||||
->stage('production')
|
->stage('production')
|
||||||
->user('p546128')
|
->user('p546128')
|
||||||
@@ -33,41 +66,24 @@ host('185.237.67.190')
|
|||||||
->set('http_user', 'p546128')
|
->set('http_user', 'p546128')
|
||||||
->set('bin/composer', '/usr/local/bin/composer')
|
->set('bin/composer', '/usr/local/bin/composer')
|
||||||
->set('rsync_src', __DIR__)
|
->set('rsync_src', __DIR__)
|
||||||
->set('rsync', [
|
->set('rsync', $rsyncOptions)
|
||||||
'exclude' => [
|
|
||||||
'.ddev',
|
|
||||||
'.DS_Store',
|
|
||||||
'.git',
|
|
||||||
'.github',
|
|
||||||
'.idea',
|
|
||||||
'node_modules',
|
|
||||||
'public/fileadmin',
|
|
||||||
'public/typo3temp',
|
|
||||||
'public/uploads',
|
|
||||||
'var',
|
|
||||||
'.editorconfig',
|
|
||||||
'.gitignore',
|
|
||||||
'.htaccess_prod',
|
|
||||||
'deploy.php',
|
|
||||||
'package.json',
|
|
||||||
'package-lock.json',
|
|
||||||
'postcss.config.js',
|
|
||||||
'tailwind.config.js',
|
|
||||||
'webpack.config.js',
|
|
||||||
],
|
|
||||||
'exclude-file' => false,
|
|
||||||
'include' => [],
|
|
||||||
'include-file' => false,
|
|
||||||
'filter' => [],
|
|
||||||
'filter-file' => false,
|
|
||||||
'filter-perdir' => false,
|
|
||||||
'flags' => 'rz',
|
|
||||||
'options' => ['delete', 'links'],
|
|
||||||
'timeout' => 300,
|
|
||||||
])
|
|
||||||
->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