diff --git a/CHANGELOG.md b/CHANGELOG.md index 41640b5e7..aba3196ff 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,9 @@ ### Fixed - Fixed scalar override on recursive option merge [#1003](https://github.com/deployphp/deployer/pull/1003) +### Changed +- Add task queue:restart for Laravel recipe [#1007](https://github.com/deployphp/deployer/pull/1007) + ## v4.2.1 [v4.2.0...v4.2.1](https://github.com/deployphp/deployer/compare/v4.2.0...v4.2.1) diff --git a/recipe/laravel.php b/recipe/laravel.php index 1c63bfffa..64568a734 100644 --- a/recipe/laravel.php +++ b/recipe/laravel.php @@ -14,12 +14,12 @@ // Laravel shared dirs set('shared_dirs', [ - 'storage' + 'storage', ]); // Laravel shared file set('shared_files', [ - '.env' + '.env', ]); // Laravel writable dirs @@ -98,6 +98,11 @@ run('{{bin/php}} {{release_path}}/artisan optimize'); }); +desc('Execute artisan queue:restart'); +task('artisan:queue:restart', function () { + run('{{bin/php}} {{release_path}}/artisan queue:restart'); +}); + /** * Task deploy:public_disk support the public disk. * To run this task automatically, please add below line to your deploy.php file