#!/bin/sh # Собираем статику в папку, которую увидит Nginx echo "Collecting static files..." python manage.py collectstatic --noinput # Миграции echo "Applying database migrations..." python manage.py migrate --noinput # Создаем админа (из переменных .env) python manage.py createsuperuser --no-input || true echo "Starting Gunicorn..." exec "$@"