Upgrade deployer
This commit is contained in:
+15
-20
@@ -1,9 +1,9 @@
|
||||
<?php
|
||||
namespace Deployer;
|
||||
|
||||
require 'vendor/deployer/deployer/recipe/typo3.php';
|
||||
require 'vendor/deployer/recipes/recipe/rsync.php';
|
||||
require 'vendor/deployer/recipes/recipe/cachetool.php';
|
||||
require 'recipe/typo3.php';
|
||||
require 'contrib/rsync.php';
|
||||
require 'contrib/cachetool.php';
|
||||
|
||||
set('typo3_webroot', 'public');
|
||||
set('application', 'ep-reisen-typo3');
|
||||
@@ -12,8 +12,6 @@ set('repository', '[email protected]:dreipunktnull/ep-reisen');
|
||||
set('git_tty', false);
|
||||
set('ssh_type', 'native');
|
||||
|
||||
set('allow_anonymous_stats', false);
|
||||
|
||||
add('shared_files', [
|
||||
'{{typo3_webroot}}/typo3conf/LocalConfiguration.php',
|
||||
'{{typo3_webroot}}/sinkhole.html',
|
||||
@@ -58,19 +56,18 @@ $rsyncOptions = [
|
||||
];
|
||||
|
||||
host('production')
|
||||
->hostname('185.237.67.190')
|
||||
->stage('production')
|
||||
->user('p546128')
|
||||
->forwardAgent()
|
||||
->multiplexing()
|
||||
->set('deploy_path', '/home/www/p546128/html/{{application}}')
|
||||
->setHostname('185.237.67.190')
|
||||
->setRemoteUser('p546128')
|
||||
->setForwardAgent(true)
|
||||
->setSshMultiplexing(true)
|
||||
->setDeployPath('/home/www/p546128/html/{{application}}')
|
||||
->set('buspronet_path', '/home/www/p546128/html/kuschick/buspronet/buspronet')
|
||||
->set('bin/php', '/usr/local/bin/php')
|
||||
->set('http_user', 'p546128')
|
||||
->set('bin/composer', '/usr/local/bin/composer')
|
||||
->set('composer_options', '--prefer-dist --no-progress --no-interaction --optimize-autoloader')
|
||||
->set('rsync_src', __DIR__)
|
||||
->set('rsync', $rsyncOptions)
|
||||
->set('bin/cachetool', 'cachetool-7.0.0.phar')
|
||||
->set('cachetool_args', '--web=SymfonyHttpClient --web-path={{release_path}}/public/ --web-url=https://www.ep-reisen.de')
|
||||
;
|
||||
|
||||
@@ -78,19 +75,18 @@ $sharedFilesStaging = get('shared_files');
|
||||
$sharedFilesStaging[] = '{{typo3_webroot}}/.htpasswd';
|
||||
|
||||
host('staging')
|
||||
->hostname('185.237.67.190')
|
||||
->stage('staging')
|
||||
->user('p546128')
|
||||
->forwardAgent()
|
||||
->multiplexing()
|
||||
->set('deploy_path', '/home/www/p546128/html/{{application}}-staging')
|
||||
->setHostname('185.237.67.190')
|
||||
->setRemoteUser('p546128')
|
||||
->setForwardAgent(true)
|
||||
->setSshMultiplexing(true)
|
||||
->setDeployPath('/home/www/p546128/html/{{application}}-staging')
|
||||
->set('buspronet_path', '/home/www/p546128/html/kuschick/buspronet/buspronet')
|
||||
->set('bin/php', '/usr/local/bin/php')
|
||||
->set('http_user', 'p546128')
|
||||
->set('bin/composer', '/usr/local/bin/composer')
|
||||
->set('composer_options', '--prefer-dist --no-progress --no-interaction --optimize-autoloader')
|
||||
->set('rsync_src', __DIR__)
|
||||
->set('rsync', $rsyncOptions)
|
||||
->set('bin/cachetool', 'cachetool-7.0.0.phar')
|
||||
->set('cachetool_args', '--web=SymfonyHttpClient --web-path={{release_path}}/public/ --web-url=https://staging.ep-reisen.de --web-basic-auth=ep:reisen')
|
||||
->set('shared_files', $sharedFilesStaging)
|
||||
;
|
||||
@@ -110,7 +106,6 @@ task('deploy', [
|
||||
'deploy:buspronet:symlink',
|
||||
'deploy:unlock',
|
||||
'cachetool:clear:opcache',
|
||||
'cleanup',
|
||||
]);
|
||||
|
||||
task('deploy:buspronet:symlink', function () {
|
||||
|
||||
Reference in New Issue
Block a user