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

Adds opcache clearing during deploy

parent b3d93337
Pipeline #3227 failed with stages
in 2 minutes and 13 seconds
......@@ -4,6 +4,8 @@ namespace Deployer;
require_once '/composer/vendor/deployer/deployer/recipe/common.php';
require_once '/composer/vendor/deployer/recipes/rsync.php';
require_once '/composer/vendor/deployer/recipes/cachetool.php';
$sharedDirectories = [
'html/fileadmin',
......@@ -60,6 +62,12 @@ task('typo3', function () {
run('cd {{release_path}} && /opt/php/php70/bin/php bin/typo3cms cache:flush');
});
set('bin/php', '/opt/php/php70/bin/php');
server('production')->set('cachetool', '/var/run/php7-fpm-tthreeorg.sock');
server('stage')->set('cachetool', '/var/run/php7-fpm-tthreestage.sock');
task('deploy', [
'deploy:prepare',
'deploy:release',
......@@ -68,6 +76,7 @@ task('deploy', [
'deploy:shared',
'deploy:writable',
'deploy:symlink',
'cachetool:clear:opcache',
'cleanup',
'typo3'
]);
master:
stage: production
host: my.typo3.org
port: 22193
user: my
forward_agent: true
deploy_path: ~/ci
develop:
stage: stage
host: my-stage.typo3.org
port: 22191
user: mystage
......
Supports Markdown
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