From daf5377525e685982eb8aafd4fa272ab5bc13ceb Mon Sep 17 00:00:00 2001 From: Rev Date: Thu, 14 Oct 2021 17:50:46 +0900 Subject: [PATCH] add new task to call artisan and refresh items cache --- deploy.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/deploy.php b/deploy.php index 30c46ac..869ba2a 100644 --- a/deploy.php +++ b/deploy.php @@ -49,6 +49,11 @@ task('artisan:up', function() {})->setPrivate(); task('artisan:view:cache', function() {})->setPrivate(); task('artisan:view:clear', function() {})->setPrivate(); +// custom task +task('items:refresh', function () { + run('cd {{release_path}} && php artisan items:refresh'); +}); + // Tasks task('deploy', [ 'deploy:info', @@ -60,6 +65,7 @@ task('deploy', [ 'deploy:vendors', 'deploy:writable', 'artisan:cache:clear', + 'items:refresh', 'deploy:symlink', 'deploy:unlock', 'cleanup',