Commit fb9db84d authored by Thorsten Griebenow's avatar Thorsten Griebenow
Browse files

Merge branch 'remove-surf' into 'develop'

[TASK] Remove surf

See merge request !18
parents 3523263f 54fe6440
Pipeline #394 passed with stages
in 1 minute and 31 seconds
<?php
/** @var $deployment TYPO3\Surf\Domain\Model\Deployment "injected" into this script from Surf */
$baseUrl = 'https://vpro0100.proserver.punkt.de/';
$deploymentPath = '/var/www/surf';
$node = new TYPO3\Surf\Domain\Model\Node('development');
$node
->setHostname('vpro0100.proserver.punkt.de')
->setOption('username', 'proserver');
$application = new TYPO3\Surf\Application\TYPO3\CMS('typo3.org');
$application
->setOption('applicationWebDirectory', 'html')
->setOption('TYPO3\\Surf\\Task\\TYPO3\\CMS\\SymlinkDataTask[webDirectory]', 'html')
->setOption('TYPO3\\Surf\\Task\\TYPO3\\CMS\\SetUpExtensionsTask[scriptFileName]', 'bin/typo3cms')
->setOption('TYPO3\\Surf\\Task\\TYPO3\\CMS\\FlushCachesTask[scriptFileName]', 'bin/typo3cms')
->setOption('keepReleases', 3)
->setOption('composerCommandPath', 'composer')
->setOption('updateMethod', null)
->setOption('packageMethod', null)
->setOption('baseUrl', $baseUrl)
->setContext('Development')
->setDeploymentPath($deploymentPath)
->addNode($node);
$deployment->addApplication($application);
$deployment->onInitialize(function () use ($deployment) {
$deployment->getWorkflow()
->setTaskOptions('TYPO3\\Surf\\Task\\Generic\\CreateSymlinksTask', ['symlinks' => ['html/sql' => '../../../shared/Sql']])
->removeTask('TYPO3\\Surf\\Task\\TYPO3\\CMS\\CreatePackageStatesTask')
->defineTask('pt:DeleteDirectoriesTask', 'TYPO3\\Surf\\Task\\ShellTask', [
'command' => 'rm -rf {releasePath}/html/fileadmin {releasePath}/html/uploads'
])
->beforeTask('TYPO3\\Surf\\Task\\TYPO3\\CMS\\SymlinkDataTask', 'pt:DeleteDirectoriesTask')
->defineTask('pt:RestartPhpFpmTask', 'TYPO3\\Surf\\Task\\ShellTask', [
'command' => 'sudo /usr/local/etc/rc.d/php-fpm restart'
])
->forStage('cleanup', 'TYPO3\\Surf\\Task\\Generic\\CreateSymlinksTask')
->forStage('cleanup', 'pt:RestartPhpFpmTask');
});
File deleted
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