mirror of
https://github.com/deployphp/deployer.git
synced 2025-02-24 01:02:24 +01:00
Check Laravel version before run artisan storage:link
Since Laravel 5.2 does not have `artisan storage:link` command, we can't call it.
This commit is contained in:
parent
6229d681eb
commit
c0f927fc70
@ -105,7 +105,9 @@ task('artisan:queue:restart', function () {
|
||||
|
||||
desc('Execute artisan storage:link');
|
||||
task('artisan:storage:link', function () {
|
||||
run('{{bin/php}} {{release_path}}/artisan storage:link');
|
||||
if (get('laravel_version') > 5.2) {
|
||||
run('{{bin/php}} {{release_path}}/artisan storage:link');
|
||||
}
|
||||
});
|
||||
|
||||
desc('Get Laravel version');
|
||||
@ -151,6 +153,7 @@ task('deploy', [
|
||||
'deploy:shared',
|
||||
'deploy:vendors',
|
||||
'deploy:writable',
|
||||
'artisan:version',
|
||||
'artisan:storage:link',
|
||||
'artisan:view:clear',
|
||||
'artisan:cache:clear',
|
||||
|
Loading…
x
Reference in New Issue
Block a user