From 27687cff6d4cd717ed7f4da68874de962e0c88fb Mon Sep 17 00:00:00 2001 From: Lasse Lehtinen Date: Mon, 13 Feb 2017 11:32:21 +0200 Subject: [PATCH 1/2] Added task for queue:restart --- CHANGELOG.md | 3 +++ recipe/laravel.php | 6 ++++++ 2 files changed, 9 insertions(+) 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..795260c6c 100644 --- a/recipe/laravel.php +++ b/recipe/laravel.php @@ -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 @@ -133,6 +138,7 @@ 'artisan:view:clear', 'artisan:cache:clear', 'artisan:config:cache', + 'artisan:queue:restart', 'artisan:optimize', 'deploy:symlink', 'deploy:unlock', From e6e44082ec94586b8dd142e1b07689a1ccd7c23b Mon Sep 17 00:00:00 2001 From: Lasse Lehtinen Date: Tue, 14 Feb 2017 17:32:00 +0200 Subject: [PATCH 2/2] Removed queue:restart from template --- recipe/laravel.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/recipe/laravel.php b/recipe/laravel.php index 795260c6c..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 @@ -138,7 +138,6 @@ 'artisan:view:clear', 'artisan:cache:clear', 'artisan:config:cache', - 'artisan:queue:restart', 'artisan:optimize', 'deploy:symlink', 'deploy:unlock',