0
1

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

sitedesign
11
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

link

answered 09 Aug '11, 11:24

iliasr's gravatar image

iliasr ♦♦
9364
accept rate: 32%

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.

link

answered 10 Aug '11, 22:45

bwooceli's gravatar image

bwooceli
111117
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

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

Tags:

×742
×171
×21

Asked: 09 Aug '11, 10:54

Seen: 1,826 times

Last updated: 10 Aug '11, 22:45

Plans & prices    Sign up    Why WebFaction?    Contact us    Affiliate program    Support    Legal    Jobs    Blog    Control panel login
Powered by OSQA
© Copyright 2003-2012 Swarma Limited - WebFaction is a service of Swarma Limited