On Nov 25, 3:58 pm, Karen Tracey <kmtra...@gmail.com> wrote:
> On Tue, Nov 24, 2009 at 11:32 PM, Tim Valenta 
> <tonightslasts...@gmail.com>wrote:
>
>
>
>
>
> > Yeah, production servers aren't really very friendly to changes.
> > Languages like PHP are specifically built to circumvent such woes.
> > You would have to actually bounce apache in order to get the changes
> > to take.
>
> > This is why the development server is so nice, because when you alter
> > certain files that it watches, it actually restarts automatically for
> > you.  There's not really going to be a solution for this problem,
> > since this is inherent to production-class web servers, where PHP and
> > general CGI is the exception.
>
> > Hope that's not a big problem!
>
> > I still liked to run a production server version of my project, so I
> > made a local SVN repository which I would commit changes to.  I
> > checked out a copy of the repository to where my production server
> > wanted to see it, and then put up a clumsy cron job would
> > automatically update the production machine's repository each day, and
> > bounce Apache for me.
>
> > That's about as close as it'll get, I think :P
>
> You don't give details on what your production environment is so I don't
> know if you can get closer there, but with mod_wsgi you can get closer.
>
> With mod_wsgi in daemon mode just touching the wsgi script file will result
> in a reload on the next request.  You can even set things up so that it
> reloads automatically on source code changes.  Graham Dumpleton sets outs
> all the details in a blog entry here:
>
> http://blog.dscpl.com.au/2008/12/using-modwsgi-when-developing-django...

Thanks Karen. Is annoying sometimes when you see people don't bother
reading past the single mod_wsgi page on Django site even though I put
disclaimers at front to try and encourage people to do so without
making it too blatant that what I wanted to say was 'STOP BEING LAZY
AND GO READ THE REAL MOD_WSGI DOCUMENTATION'. ;-)

Graham

--

You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.


Reply via email to