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
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
answered 09 Aug '11, 11:24
Well, my solution would still require you to keep an ssh session alive, but here's my my solution.
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.
answered 10 Aug '11, 22:45