Skip to content

Instantly share code, notes, and snippets.

@egobude
Created April 1, 2014 08:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save egobude/9909926 to your computer and use it in GitHub Desktop.
Save egobude/9909926 to your computer and use it in GitHub Desktop.
TYPO3.Surf | Deployment
<?php
$workflow = new \TYPO3\Surf\Domain\Model\SimpleWorkflow();
$deployment->setWorkflow($workflow);
$node = new \TYPO3\Surf\Domain\Model\Node('deployment Staging');
$node->setHostname('deployment.server.com');
$node->setOption('username', 'root');
#$node->setOption('password', '');
$application = new \TYPO3\Surf\Application\TYPO3\Flow();
$application->setName('deployment.server.com');
$application->setDeploymentPath('/www/app/');
$application->setContext('Production');
$application->setOption('keepReleases', 4);
$application->setOption('webserverUsername', 'apache');
$application->setOption('webserverGroupname', 'apache');
$application->setOption('transferMethod', 'rsync');
$application->setOption('packageMethod', 'git');
$application->setOption('updateMethod', NULL);
$application->setOption('composerCommandPath', '/usr/local/bin/composer');
$application->setOption('repositoryUrl', 'git://git.typo3.org/Flow/Distributions/Base.git');
$application->addNode($node);
$deployment->addApplication($application);
$deployment->onInitialize(function() use ($workflow, $application) {
$workflow->removeTask('typo3.surf:typo3:flow:migrate');
});
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment