Commit 1952d0fc authored by Thomas Löffler's avatar Thomas Löffler

Uses existing cachetool plugin to reset cache for stage

parent 7f38dcf0
Pipeline #2441 failed with stages
in 2 minutes and 59 seconds
......@@ -4,7 +4,6 @@ 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',
......@@ -53,15 +52,13 @@ set('rsync_src', './');
set('keep_releases', 10);
serverList('./.gitlab-ci/deployer/servers.yml');
server('develop')->set('cachetool', '/var/run/php7-fpm-extensionsstage.sock');
server('master')->set('cachetool', '/var/run/php7-fpm-extensions.sock');
task('typo3', function() {
run('cd {{release_path}} && /opt/php/php70/bin/php bin/typo3cms install:generatepackagestates 0 1');
run('cd {{release_path}} && /opt/php/php70/bin/php bin/typo3cms database:updateschema');
run('cd {{release_path}} && /opt/php/php70/bin/php bin/typo3cms language:update');
run('cd {{release_path}} && /opt/php/php70/bin/php bin/typo3cms install:fixfolderstructure');
run('cd {{release_path}} && /opt/php/php70/bin/php bin/typo3cms cache:flush');
run('cd ~ && ./cachetool.phar opcache:reset --fcgi=/var/run/php7-fpm-extensionsstage.sock');
});
task('deploy', [
......
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