Commit ea0ee64e authored by Thomas Löffler's avatar Thomas Löffler
Browse files

Merge branch 'add-generatepackagestates-to-deployment' into 'develop'

Add generatepackagestates to deployment

See merge request !29
parents a50f5fd5 f7124009
Pipeline #750 passed with stages
in 2 minutes and 57 seconds
......@@ -53,6 +53,8 @@ set('rsync_src', '/src/');
set('keep_releases', 10);
serverList('/src/.gitlab-ci/deployer/servers.yml');
set('typo3:install:generatepackagestates:options', ["activate-default=1"]);
task('deploy', [
'deploy:prepare',
'deploy:release',
......
......@@ -5,7 +5,7 @@ namespace Deployer;
set('bin/typo3cms', function () {
$releasePath = get('release_path');
$executablePath = "$releasePath/vendor/bin/typo3cms";
$executablePath = "$releasePath/bin/typo3cms";
return $executablePath;
});
......@@ -13,17 +13,19 @@ set('bin/typo3cms', function () {
$consoleFunctions = [
'database:updateschema',
'language:update',
'install:generatepackagestates',
'install:fixfolderstructure',
'install:generatepackagestates',
'cache:flush'
];
foreach ($consoleFunctions as $consoleFunction) {
task("typo3:$consoleFunction", function () {
set("typo3:$consoleFunction:options", []);
task("typo3:$consoleFunction", function () use ($consoleFunction) {
$executable = get('bin/typo3cms');
$options = get("typo3:$consoleFunction:options");
$command = "$executable $consoleFunction";
$options = get("typo3:$consoleFunction:options");
if (is_array($options)) {
foreach ($options as $option) {
$command .= " --$option";
......
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