I am developing Django apps directly on my webfaction account now as it is easier than setting up a local apache etc to match the webfaction system.

The problem being that every time I make changes to the app I have to have an SSH session open to restart apache for the app.

Is there a setting that can be put in the http.conf to save me doing this. I recall in local dev environment I used a limit_requests or something.

asked 09 Aug '11, 10:54

sitedesign's gravatar image

accept rate: 0%

I'm sorry but we can't make such exceptions per user, on the main apache server.

Have you tried Fabric? It's easy to use and could save you some hassle. http://docs.fabfile.org/en/1.2.0/index.html

permanent link

answered 09 Aug '11, 11:24

iliasr's gravatar image

iliasr ♦♦
accept rate: 36%

Well, my solution would still require you to keep an ssh session alive, but here's my my solution.

  1. Add a subdomain like "test.yourdomain.com"
  2. Create a custom app listening on port
  3. In your .bashrc, add this alias

    alias devserv='python2.6 manage.py runserver <port# for="" your="" app="">'

Then from your project home directory just run devserv and you have the development server up and running. The development server detects changes made to your project files and automatically restarts anytime you save a change, and you have the added bonus of seeing errors and such in real time. Any "print" statements made also print to the development server, so it makes debugging easy.

When you're done, of course ctrl-c to break the server. Don't worry about letting it run too long, it will usually crash on its own. Hope that helps.

permanent link

answered 10 Aug '11, 22:45

bwooceli's gravatar image

accept rate: 0%

Your answer
toggle preview

Follow this question

By Email:

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



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:


question asked: 09 Aug '11, 10:54

question was seen: 2,527 times

last updated: 10 Aug '11, 22:45

Features & prices    Sign up    Contact us    Affiliate program    Support    Legal    Jobs    Blog    Control panel login
© Copyright 2003-2015 Swarma Limited - WebFaction is a service of Swarma Limited