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

Use php executable depending on server

parent 44d0718d
Pipeline #8669 passed with stages
in 8 minutes and 17 seconds
......@@ -51,12 +51,16 @@ set('rsync', [
]);
set('rsync_src', './');
inventory('./.gitlab-ci/deployer/servers.yml');
set('php', '/opt/php/php72/bin/php');
set('php', 'php');
if (get('stage') === 'production') {
set('php', '/opt/php/php72/bin/php');
}
set('bin_folder', 'vendor/bin/');
task('typo3', function() {
run('cd {{release_path}} && php {{bin_folder}}typo3cms install:generatepackagestates');
run('cd {{release_path}} && php {{bin_folder}}typo3cms install:extensionsetupifpossible');
run('cd {{release_path}} && {{php}} {{bin_folder}}typo3cms install:generatepackagestates');
run('cd {{release_path}} && {{php}} {{bin_folder}}typo3cms install:extensionsetupifpossible');
});
task('solr_host', function() {
......@@ -70,7 +74,7 @@ task('typo3:ter_wsdl', function() {
});
task('cache', function () {
run('cd {{release_path}} && php {{bin_folder}}cachetool opcache:reset');
run('cd {{release_path}} && {{php}} {{bin_folder}}cachetool opcache:reset');
});
......
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