#!/bin/bash set -e # Database tables are created automatically on application startup # (app/main.py runs Base.metadata.create_all). The first user to register # becomes the superadmin (the instance owner), so no admin seeding is needed. # # The demo seed (seed_db.py) plants sample accounts and content for LOCAL # DEVELOPMENT only. It is opt-in: set RUN_SEED=1 to enable it. Never set # RUN_SEED=1 in production. if [ "${RUN_SEED}" = "1" ]; then echo "[entrypoint] RUN_SEED=1 -> running demo database seed..." python seed_db.py fi echo "[entrypoint] Starting application..." exec "$@"