fix: deploy caches config, routes and events instead of optimize

The API has no views, so view:cache failed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Fabian @ Blax Software 2026-10-28 19:19:02 +01:00
parent 0df473aa73
commit 1cf6beab3d
1 changed files with 4 additions and 1 deletions

View File

@ -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..."