Подправил докерфайл сборки контейнера
All checks were successful
Deploy MES Core / deploy (push) Successful in 2m19s

This commit is contained in:
2026-03-28 10:11:52 +03:00
parent 12c07a8108
commit fba195db9c
5 changed files with 38 additions and 2 deletions

View File

@@ -1,8 +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 "$@"