Initial commit: setup deploy workflow
Some checks failed
Deploy timelaps / deploy (push) Failing after 1s
Some checks failed
Deploy timelaps / deploy (push) Failing after 1s
This commit is contained in:
15
entrypoint.sh
Normal file
15
entrypoint.sh
Normal 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 "$@"
|
||||
Reference in New Issue
Block a user