Commit d2ea107d authored by Thomas Löffler's avatar Thomas Löffler
Browse files

Adds opcode cache clearing on deploying

parent b2cb3830
Pipeline #1684 passed with stages
in 3 minutes and 23 seconds
...@@ -4,6 +4,7 @@ namespace Deployer; ...@@ -4,6 +4,7 @@ namespace Deployer;
require_once '/composer/vendor/deployer/deployer/recipe/common.php'; require_once '/composer/vendor/deployer/deployer/recipe/common.php';
require_once '/composer/vendor/deployer/recipes/rsync.php'; require_once '/composer/vendor/deployer/recipes/rsync.php';
require_once '/composer/vendor/deployer/recipes/cachetool.php';
$sharedDirectories = [ $sharedDirectories = [
'html/fileadmin', 'html/fileadmin',
...@@ -50,6 +51,7 @@ set('rsync', [ ...@@ -50,6 +51,7 @@ set('rsync', [
]); ]);
set('rsync_src', '/src/'); set('rsync_src', '/src/');
set('keep_releases', 10); set('keep_releases', 10);
set('cachetool', '/run/php7-fpm-tthreeorgstage.sock');
serverList('/src/.gitlab-ci/deployer/servers.yml'); serverList('/src/.gitlab-ci/deployer/servers.yml');
task('typo3', function () { task('typo3', function () {
...@@ -69,6 +71,7 @@ task('deploy', [ ...@@ -69,6 +71,7 @@ task('deploy', [
'deploy:shared', 'deploy:shared',
'deploy:writable', 'deploy:writable',
'deploy:symlink', 'deploy:symlink',
'cachetool:clear:opcache',
'cleanup', 'cleanup',
'typo3' 'typo3'
]); ]);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment