Files
A'zamov Samandar 0229a0595c
Some checks failed
Deploy Django Application to Server / deploy (push) Failing after 19s
Telegram Notifications / Telegram Gate (push) Failing after 5s
gealogiuya
2026-02-27 14:56:23 +05:00

20 lines
459 B
Bash

#!/bin/bash
set -o errexit
set -o pipefail
set -o nounset
# Apply Django migrations
#python manage.py makemigrations
python manage.py migrate
python manage.py createadmin
# Collect static files
python manage.py collectstatic --noinput
# Run Gunicorn server with increased timeout
#exec gunicorn core.wsgi:application --bind 0.0.0.0:8000 --timeout 120
# Run Uvicorn server using ASGI
exec uvicorn core.asgi:application --host 0.0.0.0 --port 8000 --reload