Files
keywarden/app/entrypoint.sh
2025-11-11 15:51:54 +00:00

17 lines
391 B
Bash

#!/bin/sh
set -eu
# Build Tailwind CSS (best-effort; skip if not configured)
python manage.py tailwind install || true
python manage.py tailwind build || true
# Collect static files so Tailwind CSS is served
python manage.py collectstatic --noinput
python manage.py migrate --noinput
python manage.py ensure_admin
exec gunicorn keywarden.wsgi:application --bind 0.0.0.0:80 --workers 3