Django runserver permanent

后端 未结 8 475
-上瘾入骨i
-上瘾入骨i 2020-12-07 09:54

How can I make the development server from django running permanent? So that it does\'t stop when I quit the shell.

Thanks

8条回答
  •  抹茶落季
    2020-12-07 10:11

    create a file with this, example /tmp/screendjango:

    screen python manage.py runserver
    

    and then you put:

    screen -dmS django -c /tmp/screendjango
    

    for attach the sessión you put

    screen -d -r django.
    

提交回复
热议问题