replace the Django runserver command with gunicorn

I would like to test how this performs and if it works for development. Would
be nice because this way I can have a setup which is closer to what I run in
produciton than with Django runserver.
This commit is contained in:
Andreas Zweili 2020-06-28 16:48:23 +02:00
parent accc02d8d1
commit 3bb63bc44d
1 changed files with 1 additions and 1 deletions

View File

@ -27,4 +27,4 @@ else
python manage.py loaddata network_inventory.yaml
touch .second_run
fi
python manage.py runserver 0.0.0.0:8000
gunicorn network_inventory.wsgi:application --reload --bind 0.0.0.0:8000 --workers 3