From 1cf6beab3d1c1eea7aaacaa444f7fd0633642f7c Mon Sep 17 00:00:00 2001 From: "Fabian @ Blax Software" Date: Wed, 28 Oct 2026 19:19:02 +0100 Subject: [PATCH] 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 --- deploy.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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..."