Answer the question
In order to leave comments, you need to log in
How to leave Django enabled?
Hey!
I launched the project, it works, but actually how to make it work further? When the console closes, the server stops.
While I use his native server for test applications, then I want to work with nginx.
Well, sobsna zausk is like this (can I do it on port 80?)./manage.py runserver 123.45.6.7:8080
Answer the question
In order to leave comments, you need to log in
There are different deployment options, of course you can hack through nohup or supervisor / django-supervisor so that the dev server works. But the normal option for sales is a bunch of uwsgi + nginx, or gunicorn + nginx.
To make it work when the console is closed and on port 80, the simplest and most crutch option isnohup ./manage.py runserver 0:80 &
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question