Initial commit: setup deploy workflow
Some checks failed
Deploy timelaps / deploy (push) Failing after 1s

This commit is contained in:
ack
2026-04-19 09:46:18 +03:00
parent b60f469aff
commit 4b6a0f9c96
7 changed files with 202 additions and 0 deletions

15
entrypoint.sh Normal file
View File

@@ -0,0 +1,15 @@
#!/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 "$@"