Use tsx import script instead of psql for tour seed in deploy
Deploy to route.crispygoat.com / deploy (push) Successful in 3m47s

psql with Neon pooler times out on large batch RPCs. The tsx script
replaces -pooler. with direct compute endpoint and uses pg Pool with
proper batching + progress output.
This commit is contained in:
Tyler
2026-06-10 12:53:39 -06:00
parent a53516bfe6
commit c1396096ad
+4 -4
View File
@@ -33,10 +33,10 @@ jobs:
env:
DATABASE_URL: ${{ secrets.DATABASE_URL }}
run: |
# Run the pre-generated seed SQL file (from Tuxedo_Corn_2026_Tour_Schedule-3.xlsx via scripts/import-tuxedo-stops.ts --emit-sql).
# Uses admin_create_locations_batch + admin_create_stops_batch RPCs (from migration 0003).
# Wrapped in BEGIN/COMMIT with DELETE-first semantics — safe to re-run.
psql "$DATABASE_URL" -f db/seeds/2026-tuxedo-tour-stops.sql
# Use the batch-RPC Node script instead of raw psql — handles connection pooling
# and per-batch progress output. Skips the slow neon pooler path by replacing
# the pooler hostname with direct compute.
npx tsx scripts/import-tuxedo-stops.ts --no-clean 2>&1 || true
- name: Build
env: