feat: unify on single repo-root compose file for dev and prod
Some checks failed
/ test (push) Has been cancelled
/ build (push) Has been cancelled
/ validate (push) Has been cancelled

This commit is contained in:
Jonas Miederer 2026-09-07 19:46:17 +00:00
parent 9acdbaa453
commit af993bd43f
18 changed files with 253 additions and 229 deletions

15
backend/entrypoint.sh Normal file
View file

@ -0,0 +1,15 @@
#!/bin/sh
# Backend entrypoint (dev + prod): migrate, then serve.
# APP_ENV=dev (set via devcontainer.json containerEnv, attached container
# only) enables autoreload. Anything else runs the plain production server.
set -e
cd /srv/kirche-einfach/backend
.venv/bin/alembic upgrade head
if [ "${APP_ENV:-prod}" = "dev" ]; then
exec .venv/bin/uvicorn app.main:app --host 0.0.0.0 --port 8000 --reload
else
exec .venv/bin/uvicorn app.main:app --host 0.0.0.0 --port 8000
fi