Skip to content

Instantly share code, notes, and snippets.

@svparijs
Forked from brgmn/katzenet-production.php
Created October 16, 2012 12:51
Show Gist options
  • Save svparijs/3899079 to your computer and use it in GitHub Desktop.
Save svparijs/3899079 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
<?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', 'git@github.com: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