Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 319 Bytes

dj_runserver.md

File metadata and controls

20 lines (14 loc) · 319 Bytes

Scripts for running django server

runserver.sh:

#!/bin/sh

python3 manage.py migrate --noinput
python3 manage.py collectstatic --noinput
gunicorn {app_name}.wsgi:application -c gunicorn.conf.py

runserver.dev.sh:

#!/bin/sh

python3 manage.py migrate
python3 manage.py runserver 0.0.0.0:8000