Seed the Fly test server with demo data on deploy

Adds deploy/fly/seed.sql: a pruning, idempotent demo dataset (devices,
notifications, device events) spanning every workflow state for App Store
reviewers, with timestamps relative to now so it always looks fresh. The
flyImage entrypoint applies it on each boot when OOTT_SEED is set: it starts
the backend so migrations create the schema, waits for the tables, then prunes
and reloads. push_tokens is preserved.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
rzuasti
2026-06-18 09:12:23 -04:00
co-authored by Claude Opus 4.8
parent 386e459c12
commit f0395b317e
4 changed files with 175 additions and 6 deletions
+1
View File
@@ -18,6 +18,7 @@ primary_region = "ams" # change to a region near you / the reviewers
OOTT_NOTIFICATIONS_METHOD = "none" # no push/pushover on the test server
OOTT_PORT = "8080"
OOTT_DATA_DIR = "/data"
OOTT_SEED = "1" # reload deploy/fly/seed.sql demo data on every boot/deploy
# Persistent SQLite storage. Create the volume once with:
# fly volumes create oott_data --region ams --size 1