Skip to content

Latest commit

 

History

History
25 lines (18 loc) · 807 Bytes

README.md

File metadata and controls

25 lines (18 loc) · 807 Bytes

Example Surf Deployment

<?php

/** @var \TYPO3\Surf\Domain\Model\Deployment $deployment */


// APPLICATION
$application = new \TYPO3\Surf\CMS\Application\TYPO3\CMS();
$application->setOption('projectName', 'Introduction Package');
$application->setOption('repositoryUrl', 'git://git.typo3.org/TYPO3CMS/Distributions/Introduction.git');
$application->setOption('typo3.surf:gitCheckout[branch]', 'master');
$application->setDeploymentPath('/var/www/introduction');

// NODES
$node = new \TYPO3\Surf\Domain\Model\Node('Introduction Package on local system');
$node->setHostname('localhost');
$application->addNode($node);

// WORKFLOW
$workflow = new \TYPO3\Surf\Domain\Model\SimpleWorkflow();

// DEPLOYMENT
$deployment->setWorkflow($workflow);
$deployment->addApplication($application);