feat: auto-seed PR environments with SEED_ON_DEPLOY flag

Release command now runs migrations + seeds test users when
SEED_ON_DEPLOY=true. Tree seeding runs as a background task
on startup via HTTP API. Everything is idempotent and non-fatal.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
chihlasm
2026-02-19 07:59:59 -05:00
parent 7f520772ec
commit 30ab5a5907
4 changed files with 103 additions and 1 deletions

View File

@@ -7,4 +7,4 @@ healthcheckPath = "/health"
healthcheckTimeout = 100
restartPolicyType = "on_failure"
restartPolicyMaxRetries = 3
releaseCommand = "alembic upgrade head"
releaseCommand = "python -m scripts.release"