Refactor database handling to require PostgreSQL connection, removing fallback to JSON. Implement error handling for database unavailability in key files. Update .env.example to reflect mandatory DATABASE_URL for local development. Remove Firebase configuration and related code from the project.
This commit is contained in:
+2
-2
@@ -1,6 +1,6 @@
|
||||
# FlixCooks – lokale Entwicklung (.env wird nicht committed)
|
||||
# Kopieren: cp .env.example .env
|
||||
|
||||
# --- Postgres (docker-compose.dev.yml) ---
|
||||
# Nur setzen, wenn du die lokale DB testen willst. Ohne DATABASE_URL → Fallback auf data/recipes.json
|
||||
# --- Postgres (Pflicht für die Website) ---
|
||||
# docker compose -f docker-compose.dev.yml up -d
|
||||
DATABASE_URL="postgresql://flixcooks:flixcooks_dev@127.0.0.1:5432/flixcooks_dev"
|
||||
|
||||
Reference in New Issue
Block a user