Skip to content

Instantly share code, notes, and snippets.

@skurfuerst
Created August 4, 2011 15:04
Show Gist options
  • Save skurfuerst/1125373 to your computer and use it in GitHub Desktop.
Save skurfuerst/1125373 to your computer and use it in GitHub Desktop.
<?php
use \TYPO3\Deploy\Domain\Model\Workflow;
use \TYPO3\Deploy\Domain\Model\Node;
use \TYPO3\Deploy\Domain\Model\SimpleWorkflow;
$application = new \TYPO3\Deploy\Application\TYPO3();
$application->setOption('repositoryUrl', 'git://git.typo3.org/TYPO3v5/Distributions/Base.git');
$application->setDeploymentPath('/Volumes/data/htdocs/phoenixdemo/');
$application->setOption('sitePackageKey', 'TYPO3.PhoenixDemoTypo3Org');
$deployment->addApplication($application);
$workflow = new SimpleWorkflow();
$deployment->setWorkflow($workflow);
$workflow->defineTask(
'typo3.deploy:flow3:setfilepermissions',
'typo3.deploy:flow3:setfilepermissions',
array(
'shellUsername' => 'sebastian',
'webserverUsername' => '_www',
'webserverGroupname' => '_www'
)
);
$node = new Node('localhost');
$node->setHostname('localhost');
$node->setOption('username', 'sebastian');
$application->addNode($node);
$deployment->addNode($node);
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment