Commit 0a249d9b authored by Thomas Löffler's avatar Thomas Löffler

Move production php setting into typo3 task

parent 4b1cc5aa
Pipeline #8699 passed with stages
in 7 minutes and 8 seconds
......@@ -74,7 +74,7 @@ deploy-master:
name: master
url: https://${PRODUCTION_HOST}
script:
- /tmp/vendor/bin/dep --file=./.gitlab-ci/deployer/deploy.php deploy master
- /tmp/vendor/bin/dep --file=./.gitlab-ci/deployer/deploy.php deploy master -vv
only:
- master
......
......@@ -53,12 +53,12 @@ set('rsync_src', './');
inventory('./.gitlab-ci/deployer/servers.yml');
set('php', 'php');
if (get('stage') === 'production') {
set('php', '/opt/php/php72/bin/php');
}
set('bin_folder', 'vendor/bin/');
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 install:extensionsetupifpossible');
});
......
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