deployer/recipe/codeigniter.php

34 lines
715 B
PHP
Raw Normal View History

2015-06-01 16:22:56 +09:00
<?php
2016-01-11 12:51:59 +07:00
/* (c) Anton Medvedev <anton@medv.io>
2015-06-01 16:22:56 +09:00
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
2016-01-11 14:00:45 +07:00
namespace Deployer;
2015-06-01 16:22:56 +09:00
require_once __DIR__ . '/common.php';
// CodeIgniter shared dirs
set('shared_dirs', ['application/cache', 'application/logs']);
// CodeIgniter writable dirs
set('writable_dirs', ['application/cache', 'application/logs']);
/**
* Main task
*/
task('deploy', [
2015-06-01 16:22:56 +09:00
'deploy:prepare',
2016-11-05 12:56:53 +07:00
'deploy:lock',
2015-06-01 16:22:56 +09:00
'deploy:release',
'deploy:update_code',
'deploy:vendors',
'deploy:shared',
'deploy:symlink',
2016-11-05 12:56:53 +07:00
'deploy:unlock',
2015-06-01 16:22:56 +09:00
'cleanup',
])->desc('Deploy your project');
after('deploy', 'success');