Created
October 11, 2012 07:19
-
-
Save brgmn/3870744 to your computer and use it in GitHub Desktop.
TYPO3 Surf sample configuration (github, TYPO3 Flow, ubuntu server) -> place this at /Build/Surf/ and deploy with ./flow surf:deploy katzenet-production
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use \TYPO3\Surf\Domain\Model\Workflow; | |
use \TYPO3\Surf\Domain\Model\Node; | |
use \TYPO3\Surf\Domain\Model\SimpleWorkflow; | |
$application = new \TYPO3\Surf\Application\FLOW3(); | |
$application->setOption('repositoryUrl', '[email protected]:katzeag/Katzenet.git'); | |
$application->setDeploymentPath('/var/www/katzenet-app'); | |
$application->setOption('keepReleases', 20); | |
$application->setOption('composerCommandPath', '/usr/bin/composer'); | |
$deployment->addApplication($application); | |
$workflow = new SimpleWorkflow(); | |
$workflow->setEnableRollback(FALSE); | |
$deployment->setWorkflow($workflow); | |
$deployment->onInitialize(function() use ($workflow, $application) { | |
$workflow->removeTask('typo3.surf:flow3:setfilepermissions'); | |
}); | |
$node = new Node('app1.katzenet.com'); | |
$node->setHostname('app1.katzenet.com'); | |
$node->setOption('username', 'www-data'); | |
$application->addNode($node); | |
$deployment->addApplication($application); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment