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:
parent
0df473aa73
commit
1cf6beab3d
|
|
@ -48,7 +48,10 @@ echo "==> Migrating..."
|
||||||
"${APP[@]}" php artisan db:seed --force
|
"${APP[@]}" php artisan db:seed --force
|
||||||
|
|
||||||
"${APP[@]}" php artisan optimize:clear
|
"${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.
|
# Both daemons cache code at boot.
|
||||||
echo "==> Restarting WS server and game:events worker..."
|
echo "==> Restarting WS server and game:events worker..."
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue