fix: deploy stops the game:events worker before migrating and seeding

The old worker picked up a raid.planned event the seeder had just scheduled and
gave up on the unknown type.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Fabian @ Blax Software 2026-10-29 16:09:12 +01:00
parent 1319276e2f
commit 99e2b44872
1 changed files with 4 additions and 0 deletions

View File

@ -43,6 +43,10 @@ fi
"${APP[@]}" chown -R www-data:www-data storage bootstrap/cache "${APP[@]}" chown -R www-data:www-data storage bootstrap/cache
# The worker still runs the old code: stop it before the seeder schedules events it may
# not know yet (it gives up on an event after three failures). Restarted below.
"${APP[@]}" supervisorctl stop game-events || true
echo "==> Migrating..." echo "==> Migrating..."
"${APP[@]}" php artisan migrate --force "${APP[@]}" php artisan migrate --force
"${APP[@]}" php artisan db:seed --force "${APP[@]}" php artisan db:seed --force