fix: Produktions-Crash durch TypeORM-synchronize beheben
Build and Push Multi-Platform Images / build-and-push (push) Successful in 44s
Build and Push Multi-Platform Images / build-and-push (push) Successful in 44s
NODE_ENV=production deaktiviert synchronize (zerstörerischer ADD/DROP-COLUMN- Churn auf MariaDB, der die 8126-Byte-Zeilengröße sprengte) und aktiviert migrationsRun. Neue data-source.ts als einzige Konfigquelle (Laufzeit + CLI), Migrations-Workflow (generate/run/revert) inkl. dotenv ergänzt. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -7,6 +7,13 @@
|
||||
# Produktion: VITE_API_URL leer lassen (nginx Reverse-Proxy leitet /api weiter)
|
||||
# =============================================================================
|
||||
|
||||
# --- Umgebung ---
|
||||
# Produktion: NODE_ENV=production -> KEIN TypeORM-synchronize (Schema via Migrationen),
|
||||
# Migrationen werden beim Start automatisch ausgeführt (migrationsRun).
|
||||
# Aktiviert zudem CORS-Schutz (siehe CORS_ORIGIN weiter unten).
|
||||
# Entwicklung: NODE_ENV leer lassen -> synchronize ON (Schema folgt den Entities).
|
||||
NODE_ENV=production
|
||||
|
||||
# --- Ports ---
|
||||
BACKEND_PORT=7601
|
||||
FRONTEND_PORT=7600
|
||||
|
||||
Reference in New Issue
Block a user