2015-05-18 11:26:59 +07:00
|
|
|
<?php
|
|
|
|
/* (c) Anton Medvedev <anton@elfet.ru>
|
|
|
|
*
|
|
|
|
* For the full copyright and license information, please view the LICENSE
|
|
|
|
* file that was distributed with this source code.
|
|
|
|
*/
|
|
|
|
|
|
|
|
require_once __DIR__ . '/common.php';
|
|
|
|
|
|
|
|
// Laravel shared dirs
|
2015-09-09 10:58:37 +03:00
|
|
|
set('shared_dirs', [
|
|
|
|
'storage/app',
|
|
|
|
'storage/framework/cache',
|
|
|
|
'storage/framework/sessions',
|
|
|
|
'storage/framework/views',
|
2015-09-09 16:32:10 +03:00
|
|
|
'storage/logs',
|
2015-09-09 10:58:37 +03:00
|
|
|
]);
|
2015-05-18 11:26:59 +07:00
|
|
|
|
2015-05-28 00:41:52 +07:00
|
|
|
// Laravel 5 shared file
|
|
|
|
set('shared_files', ['.env']);
|
|
|
|
|
2015-05-18 11:26:59 +07:00
|
|
|
// Laravel writable dirs
|
|
|
|
set('writable_dirs', ['storage', 'vendor']);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Main task
|
|
|
|
*/
|
|
|
|
task('deploy', [
|
|
|
|
'deploy:prepare',
|
|
|
|
'deploy:release',
|
|
|
|
'deploy:update_code',
|
|
|
|
'deploy:vendors',
|
2015-05-20 22:39:24 +03:00
|
|
|
'deploy:shared',
|
2015-05-18 11:26:59 +07:00
|
|
|
'deploy:symlink',
|
|
|
|
'cleanup',
|
|
|
|
])->desc('Deploy your project');
|
|
|
|
|
|
|
|
after('deploy', 'success');
|