Files
romm/.github/scripts
Sam Dornan 1d48876f91 ci: deploy pull request previews to Fly.io with seeded dummy data
Each same-repo pull request gets its own Fly.io app at
romm-pr-<number>.fly.dev, built from a new preview-image stage that bundles
PostgreSQL and seeds 500 roms with generate_test_data.py on boot. The app
stops when idle, is destroyed when the PR closes, and a nightly run sweeps
any preview whose teardown was missed. Nothing deploys until the
FLY_API_TOKEN secret is set.

Measured locally on 1 CPU and 1GB: about 65s from boot to a working API,
and a 730MB peak while browsing, so previews use shared-cpu-1x with 1GB.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NH5s4iq36yZccNujCwQVxx
2026-11-16 22:16:17 +00:00
..