diff --git a/deploy.sh b/deploy.sh index b1b0ccc..79eaff4 100755 --- a/deploy.sh +++ b/deploy.sh @@ -48,7 +48,10 @@ echo "==> Migrating..." "${APP[@]}" php artisan db:seed --force "${APP[@]}" php artisan optimize:clear -"${APP[@]}" php artisan optimize +# Not `optimize`: there are no views to cache in an API-only app. +"${APP[@]}" php artisan config:cache +"${APP[@]}" php artisan route:cache +"${APP[@]}" php artisan event:cache # Both daemons cache code at boot. echo "==> Restarting WS server and game:events worker..."