gealogiuya
This commit is contained in:
19
deployments/compose/django/start
Normal file
19
deployments/compose/django/start
Normal file
@@ -0,0 +1,19 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user