deployer/recipe/typo3.php
2018-08-27 13:33:45 +07:00

60 lines
1.1 KiB
PHP

<?php
/* (c) Frank Naegler <frank.naegler@typo3.org>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Deployer;
require_once __DIR__ . '/common.php';
/**
* DocumentRoot / WebRoot for the TYPO3 installation
*/
set('typo3_webroot', 'Web');
/**
* Main TYPO3 task
*/
task('deploy', [
'deploy:info',
'deploy:prepare',
'deploy:lock',
'deploy:release',
'deploy:update_code',
'deploy:shared',
'deploy:vendors',
'deploy:writable',
'deploy:symlink',
'deploy:unlock',
'cleanup',
])->desc('Deploy your project');
after('deploy', 'success');
/**
* Shared directories
*/
set('shared_dirs', [
'{{typo3_webroot}}/fileadmin',
'{{typo3_webroot}}/typo3temp',
'{{typo3_webroot}}/uploads'
]);
/**
* Shared files
*/
set('shared_files', [
'{{typo3_webroot}}/.htaccess'
]);
/**
* Writeable directories
*/
set('writable_dirs', [
'{{typo3_webroot}}/fileadmin',
'{{typo3_webroot}}/typo3temp',
'{{typo3_webroot}}/typo3conf',
'{{typo3_webroot}}/uploads'
]);