mirror of
https://github.com/rzuasti/oott.git
synced 2026-07-08 19:21:54 +02:00
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:
co-authored by
Claude Opus 4.8
parent
386e459c12
commit
f0395b317e
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user