Skip to content

Commit

Permalink
chore(deploy): added re-caching stuff after clearing cache
Browse files Browse the repository at this point in the history
  • Loading branch information
rizkyilhampra committed Nov 21, 2024
1 parent a5f585e commit f2792d0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions deploy.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,19 @@
run('pm2 restart pm2-worker.yml');
});

task('re-caching', function() {
cd('{{release_path}}');
run('php artisan cache:provinces');
run('php artisan cache:cities');
});

task('deploy', [
'deploy:prepare',
'deploy:secrets',
'deploy:vendors',
'artisan:storage:link',
'artisan:optimize:clear',
're-caching',
'pm2',
'artisan:migrate',
'artisan:optimize',
Expand Down

0 comments on commit f2792d0

Please sign in to comment.