diff --git a/deploy.sh b/deploy.sh index 79eaff4..ceab813 100755 --- a/deploy.sh +++ b/deploy.sh @@ -43,6 +43,10 @@ fi "${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..." "${APP[@]}" php artisan migrate --force "${APP[@]}" php artisan db:seed --force