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:
parent
1319276e2f
commit
99e2b44872
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue