feat: backend env config upgrade - multi-env (dev/prod), DB_* support, Docker compatible
Some checks failed
Build and Deploy / test-backend (push) Has been cancelled
Build and Deploy / build-backend (push) Has been cancelled
Build and Deploy / build-admin (push) Has been cancelled
Deploy to Production / build-backend (push) Has been cancelled
Deploy to Production / deploy (push) Has been cancelled

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
bujie9527
2026-02-06 12:07:02 +08:00
parent 91c3d75557
commit b715755b76
11 changed files with 141 additions and 35 deletions

10
backend/.env.example Normal file
View File

@@ -0,0 +1,10 @@
# Database (optional: set DATABASE_URL directly, or use DB_* below)
DB_HOST=localhost
DB_PORT=5432
DB_USER=wecom
DB_PASSWORD=password
DB_NAME=wecom
DATABASE_URL=
# Sync URL for Alembic (optional; default: built from DB_*)
# DATABASE_URL_SYNC=