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

Use cachetool by composer and change order of tasks in deployment

parent 15378627
Pipeline #4523 passed with stages
in 6 minutes and 40 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 = [
......@@ -54,16 +53,16 @@ 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 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 {{release_path}} && {{php}} bin/typo3cms install:generatepackagestates');
run('cd {{release_path}} && {{php}} bin/typo3cms install:extensionsetupifpossible');
});
set('bin/php', '/opt/php/php70/bin/php');
task('cache', function () {
run('cd {{release_path}} && {{php}} bin/cachetool opcache:reset');
});
task('deploy', [
'deploy:prepare',
......@@ -72,8 +71,8 @@ task('deploy', [
'rsync',
'deploy:shared',
'deploy:writable',
'typo3',
'deploy:symlink',
'cachetool:clear:opcache',
'cache',
'cleanup',
'typo3'
]);
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