Files
timelaps/entrypoint.sh
ack 4b6a0f9c96
Some checks failed
Deploy timelaps / deploy (push) Failing after 1s
Initial commit: setup deploy workflow
2026-04-19 09:46:18 +03:00

15 lines
417 B
Bash

#!/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 "$@"