deployer/recipe/typo3.php

59 lines
1.1 KiB
PHP
Raw Normal View History

2016-04-27 13:25:53 +02:00
<?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;
2016-04-27 13:25:53 +02:00
require_once __DIR__ . '/common.php';
/**
* DocumentRoot / WebRoot for the TYPO3 installation
*/
set('typo3_webroot', 'Web');
2016-04-27 13:25:53 +02:00
/**
* Main TYPO3 task
*/
task('deploy', [
2017-08-12 12:01:27 +03:00
'deploy:info',
2016-04-27 13:25:53 +02:00
'deploy:prepare',
2016-11-05 12:56:53 +07:00
'deploy:lock',
2016-04-27 13:25:53 +02:00
'deploy:release',
'deploy:update_code',
'deploy:shared',
'deploy:vendors',
'deploy:symlink',
2016-11-05 12:56:53 +07:00
'deploy:unlock',
2016-04-27 13:25:53 +02:00
'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'
]);