Commit e3ea9d7d authored by Tomas Norre Mikkelsen's avatar Tomas Norre Mikkelsen
Browse files

Merge branch 'change-deployment-to-new-server' into 'develop'

Removes obsolete typo3console file

See merge request !43
parents 09f5061c 5977057b
Pipeline #1203 passed with stages
in 4 minutes and 25 seconds
<?php
namespace Deployer;
set('bin/typo3cms', function () {
$releasePath = get('release_path');
$executablePath = "$releasePath/bin/typo3cms";
return $executablePath;
});
$consoleFunctions = [
'database:updateschema',
'language:update',
'install:fixfolderstructure',
'install:generatepackagestates',
'cache:flush'
];
foreach ($consoleFunctions as $consoleFunction) {
set("typo3:$consoleFunction:options", []);
task("typo3:$consoleFunction", function () use ($consoleFunction) {
$executable = get('bin/typo3cms');
$command = "$executable $consoleFunction";
$options = get("typo3:$consoleFunction:options");
if (is_array($options)) {
foreach ($options as $option) {
$command .= " --$option";
}
}
writeln(run($command));
})->desc(
"Direct wrapper for $consoleFunction. Supply options" .
" with set(\"typo3:$consoleFunction:options\", array([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