M1: Grundgerüst, Datenmodell und Admin
Django-5.2-Projekt mit uv, django-environ und Docker-Compose-Setup (web + Postgres, WeasyPrint-Systembibliotheken im Image). Vollständiges Datenmodell (Firma, Therapeut, Auftraggeber, Teilnehmer, Leistungsart, Leistung, InvoiceLog, InvoiceCounter) mit Admin, Login-Flow und Platzhalter-Dashboard. Fortschritt in FORTSCHRITT.md. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016yy3uodsai6Ytt3GJ7tBdz
This commit is contained in:
22
entrypoint.sh
Normal file
22
entrypoint.sh
Normal file
@@ -0,0 +1,22 @@
|
||||
#!/usr/bin/env bash
|
||||
# Wartet auf die DB, migriert, sammelt Statics und startet dann das übergebene CMD.
|
||||
set -euo pipefail
|
||||
|
||||
# Warte auf Postgres, falls ein Host konfiguriert ist.
|
||||
if [[ -n "${DB_HOST:-}" ]]; then
|
||||
echo "Warte auf Datenbank ${DB_HOST}:${DB_PORT:-5432} ..."
|
||||
until python -c "import socket,sys,os; s=socket.socket(); s.settimeout(2); \
|
||||
s.connect((os.environ['DB_HOST'], int(os.environ.get('DB_PORT','5432')))); s.close()" \
|
||||
2>/dev/null; do
|
||||
sleep 1
|
||||
done
|
||||
echo "Datenbank erreichbar."
|
||||
fi
|
||||
|
||||
python manage.py migrate --noinput
|
||||
|
||||
if [[ "${DJANGO_COLLECTSTATIC:-1}" == "1" ]]; then
|
||||
python manage.py collectstatic --noinput
|
||||
fi
|
||||
|
||||
exec "$@"
|
||||
Reference in New Issue
Block a user