Added task for queue:restart

This commit is contained in:
Lasse Lehtinen 2017-02-13 11:32:21 +02:00
parent d2cbc89da3
commit 27687cff6d
2 changed files with 9 additions and 0 deletions

View File

@ -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)

View File

@ -98,6 +98,11 @@ task('artisan:optimize', function () {
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 @@ task('deploy', [
'artisan:view:clear',
'artisan:cache:clear',
'artisan:config:cache',
'artisan:queue:restart',
'artisan:optimize',
'deploy:symlink',
'deploy:unlock',