Commit dce8df64 authored by Thomas Löffler's avatar Thomas Löffler

Use cachetool from composer and change order of deploying tasks

parent 267364b2
Pipeline #4515 passed with stages
in 14 minutes and 1 second
......@@ -53,13 +53,17 @@ set('rsync', [
set('rsync_src', './');
set('keep_releases', 10);
serverList('./.gitlab-ci/deployer/servers.yml');
set('php', '/opt/php/php70/bin/php');
task('typo3', function() {
run('cd {{release_path}} && /opt/php/php70/bin/php bin/typo3cms install:generatepackagestates');
run('cd {{release_path}} && /opt/php/php70/bin/php bin/typo3cms install:extensionsetupifpossible');
run('cd {{release_path}} && {{php}} bin/typo3cms install:generatepackagestates');
run('cd {{release_path}} && {{php}} bin/typo3cms install:extensionsetupifpossible');
});
task('cache', function () {
run('cd {{release_path}} && {{php}} bin/cachetool');
});
set('bin/php', '/opt/php/php70/bin/php');
task('deploy', [
'deploy:prepare',
......@@ -68,8 +72,8 @@ task('deploy', [
'rsync',
'deploy:shared',
'deploy:writable',
'typo3',
'deploy:symlink',
'cachetool:clear:opcache',
'cleanup',
'typo3'
'cache',
'cleanup'
]);
This diff is collapsed.
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