20 lines
459 B
Bash
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
|