PROBLEM: - Backend crasht beim Start auf Prod - Login zeigt HTML statt JSON (Backend nicht erreichbar) - Ursache: init_db() wirft Exception beim Startup FIX: 1. startup_event() wrapped in try-except (non-fatal) 2. init_db() prüft ob ai_prompts Tabelle existiert 3. init_db() hat eigenen try-except 4. Bessere Fehlermeldungen in stdout ERGEBNIS: - Backend startet auch wenn init_db() fehlschlägt - Pipeline-Prompt kann manuell angelegt werden falls nötig - Login funktioniert wieder Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| db_init.py | ||
| db.py | ||
| Dockerfile | ||
| main.py | ||
| migrate_to_postgres.py | ||
| requirements.txt | ||
| schema.sql | ||
| startup.sh | ||