Tags
Asked 4 years ago
29 Nov 2019
Views 2712
debugger

debugger posted

Django keep server running


sudo python3 manage.py runserver


it running perfect at port 8000
but when i close terminal my online website goes down again

so what i should do it keep running
Nilesh

Nilesh
answered Nov 30 '-1 00:00

You can use nohup


nohup python3 manage.py runserver 

or


nohup python3 manage.py runserver  0.0.0.0:8000


or


nohup sudo python3 manage.py runserver  0.0.0.0:8000


if you are in the other folder than Django project than use full path instead of manage.py only



nohup  python /home/srx/manage.py runserver  0.0.0.0:8000
Post Answer