mirror of
https://github.com/deployphp/deployer.git
synced 2025-02-24 09:12:51 +01:00
39 lines
781 B
PHP
39 lines
781 B
PHP
<?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
|
|
set('shared_dirs', [
|
|
'storage/app',
|
|
'storage/framework/cache',
|
|
'storage/framework/sessions',
|
|
'storage/framework/views',
|
|
'storage/logs',
|
|
]);
|
|
|
|
// Laravel 5 shared file
|
|
set('shared_files', ['.env']);
|
|
|
|
// Laravel writable dirs
|
|
set('writable_dirs', ['storage', 'vendor']);
|
|
|
|
/**
|
|
* Main task
|
|
*/
|
|
task('deploy', [
|
|
'deploy:prepare',
|
|
'deploy:release',
|
|
'deploy:update_code',
|
|
'deploy:vendors',
|
|
'deploy:shared',
|
|
'deploy:symlink',
|
|
'cleanup',
|
|
])->desc('Deploy your project');
|
|
|
|
after('deploy', 'success');
|