Commit 44d5118c authored by Thomas Löffler's avatar Thomas Löffler

Change order of deployment tasks and remove special case for old production

parent 83aa7370
Pipeline #8869 passed with stages
in 6 minutes and 5 seconds
......@@ -63,14 +63,15 @@ task('solr_host', function () {
});
task('typo3', function () {
if (get('stage') === 'production') {
set('php', '/opt/php/php72/bin/php');
}
run('cd {{release_path}} && {{php}} {{bin_folder}}typo3cms install:generatepackagestates');
run('cd {{release_path}} && {{php}} {{bin_folder}}typo3cms database:updateschema');
run('cd {{release_path}} && {{php}} {{bin_folder}}typo3cms install:extensionsetupifpossible');
});
task('typo3_cache', function() {
run('cd {{release_path}} && {{php}} {{bin_folder}}typo3cms cache:flush');
});
task('cache', function () {
run('cd {{release_path}} && {{php}} {{bin_folder}}cachetool opcache:reset');
});
......@@ -82,9 +83,10 @@ task('deploy', [
'rsync',
'deploy:shared',
'deploy:writable',
'solr_host',
'typo3',
'deploy:symlink',
'solr_host',
'typo3_cache',
'cache',
'cleanup'
]);
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