All content (recipes + imprint/privacy settings) now lives exclusively in Postgres. The app no longer requires a seed step on first deploy. Changes: - helpers.php: load_site_settings() returns defaults when site_settings table is empty instead of throwing DatabaseUnavailableException; removes legacy JSONB migration path - data/recipes.json, data/site.json: deleted (content already in DB) - scripts/db-seed.php: deleted (no longer needed) - docker-compose.yml: remove RUN_DB_SEED env var and data/ volume mount - docker/entrypoint.sh: remove RUN_DB_SEED seed block - docs/COOLIFY.md: update deployment guide to reflect seedless workflow - .claude/launch.json: add dev server configurations for preview tool Fresh deploys now start with placeholder legal pages and an empty recipe list; the admin fills in real content via /admin.php without any CLI step. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
12 lines
571 B
Bash
12 lines
571 B
Bash
# FlixCooks – lokale Entwicklung (.env wird nicht committed)
|
||
# Kopieren: cp .env.example .env
|
||
|
||
# --- Postgres (Pflicht für die Website) ---
|
||
# Lokal: docker compose -f docker-compose.dev.yml up -d
|
||
DATABASE_URL="postgresql://flixcooks:flixcooks_dev@127.0.0.1:5432/flixcooks_dev"
|
||
|
||
# --- Production / Coolify (im Dashboard setzen, nicht committen) ---
|
||
# DATABASE_URL="postgresql://user:pass@postgresql-service:5432/flixcooks"
|
||
# FLIXCOOKS_ADMIN_KEY="langes-zufaelliges-passwort"
|
||
# RUN_DB_SEED="true" # nur beim allerersten Deploy: Rezepte + Site-Daten in Postgres seeden
|