Skip to content

Commit

Permalink
Fix shared_dirs and writable directories
Browse files Browse the repository at this point in the history
  • Loading branch information
OanhNN committed Apr 12, 2016
1 parent 29d3e39 commit c781dd4
Showing 1 changed file with 17 additions and 22 deletions.
39 changes: 17 additions & 22 deletions recipe/laravel.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,7 @@
// This recipe support Laravel 5.1+, with orther version, please see document https://github.com/deployphp/docs

// Laravel shared dirs
set('shared_dirs', [
'storage/app',
'storage/framework/cache',
'storage/framework/sessions',
'storage/framework/views',
'storage/logs',
]);
set('shared_dirs', ['storage']);

// Laravel 5 shared file
set('shared_files', ['.env']);
Expand All @@ -26,21 +20,6 @@
// Allow using migrate database command with --force option
env('allow_force_migrate', false);

/**
* 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');

/**
* Helper tasks
*/
Expand All @@ -65,3 +44,19 @@
$output = run('{{bin/php}} {{deploy_path}}/current/artisan down');
writeln('<error>'.$output.'</error>');
})->desc('Enable maintenance mode');

/**
* Main task
*/
task('deploy', [
'deploy:prepare',
'deploy:release',
'deploy:update_code',
'deploy:vendors',
'deploy:shared',
'deploy:writable',
'deploy:symlink',
'cleanup',
])->desc('Deploy your project');

after('deploy', 'success');

0 comments on commit c781dd4

Please sign in to comment.