M
M
Mark Rosenthal2015-02-27 22:29:47
Django
Mark Rosenthal, 2015-02-27 22:29:47

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

1 answer(s)
U
un1t, 2015-02-27
@un1t

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 is
nohup ./manage.py runserver 0:80 &

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question