WebFaction
Community site: login faq

I'm using a virtualenv with virtualenvwrapper and everything is working as expected. The only issue I'm having is that when I quit the ssh session I use to './manage.py runserver' the process is stopped. How can I start the server in such a way that will keep the process running after quiting the ssh session?

asked 01 Jun '14, 04:39

mooky
1313
accept rate: 0%


You should add an & character in the end of your runserver command to send it to the background, or you can start it inside a screen session, which you would detach before signing out.

Please note that the django project clearly advises against running the built-in server on a production environment. You should better run your app, using one of our apache/mod_wsgi stacks, or another stack like uwsgi or gunicorn.

permanent link

answered 01 Jun '14, 08:26

iliasr ♦♦
2.1k14
accept rate: 35%

Thanks iliasr, in the end I did end up using the apache server. I'll keep the background process tip in mind for future use.

(01 Jun '14, 08:34) mooky
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×909
×103
×55

question asked: 01 Jun '14, 04:39

question was seen: 6,141 times

last updated: 01 Jun '14, 08:34

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM