#!/bin/sh
set -e

# Run DB migrations on startup (idempotent — safe to run every time)
uv run manage.py migrate --noinput

exec gunicorn --chdir /app core.wsgi:application \
    --bind 0.0.0.0:8000 \
    --workers 2 \
    --threads 4
