deployer/recipe/yii.php

36 lines
681 B
PHP
Raw Normal View History

2015-05-18 11:30:41 +07:00
<?php
2016-01-11 12:51:59 +07:00
/* (c) Anton Medvedev <anton@medv.io>
2015-05-18 11:30:41 +07: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-05-18 11:30:41 +07:00
require_once __DIR__ . '/common.php';
2015-05-18 11:31:51 +07:00
// Yii shared dirs
2015-05-18 11:30:41 +07:00
set('shared_dirs', ['runtime']);
2015-05-18 11:31:51 +07:00
// Yii writable dirs
2015-05-18 11:30:41 +07:00
set('writable_dirs', ['runtime']);
/**
* Main task
*/
task('deploy', [
2017-08-12 12:01:27 +03:00
'deploy:info',
2015-05-18 11:30:41 +07:00
'deploy:prepare',
2016-11-05 12:56:53 +07:00
'deploy:lock',
2015-05-18 11:30:41 +07:00
'deploy:release',
'deploy:update_code',
'deploy:shared',
2015-05-18 11:30:41 +07:00
'deploy:vendors',
'deploy:writable',
2015-05-18 11:30:41 +07:00
'deploy:symlink',
2016-11-05 12:56:53 +07:00
'deploy:unlock',
2015-05-18 11:30:41 +07:00
'cleanup',
])->desc('Deploy your project');
after('deploy', 'success');