On 3/22/07, Ofer Nave <[EMAIL PROTECTED]> wrote:
> As I mentioned in my previous email, I'm running a WSGI app under
> apache/mod_python/paste.mod_python.  It seems to detect changes to files
> most of the time, but not all the time.  I haven't been able to isolate any
> patterns, so I don't have much more to offer.  Basically, I'll be running
> through my usualy development iterations and the web app will sometimes
> demonstrate older behaviors (from code I've changed already).  Restarting
> Apache immediately changes the behavior of the app to reflect the most
> recent changes.
>
> I did see this:
>
> http://pythonpaste.org/module-paste.reloader.html
>
> But I'm afraid I'm not sure if it applies to a mod_python environment, or
> how to incorporate it.  :(

Doesn't mod_python have its own code to do reloading?

In the past, the way I've done this is to setup Apache so that
MaxRequestsPerChild is 1.  That way you get a fresh interpreter every
time.  That sucks for production, but it's great in development.

Best Regards,
-jj

-- 
http://jjinux.blogspot.com/

_______________________________________________
Paste-users mailing list
[email protected]
http://webwareforpython.org/cgi-bin/mailman/listinfo/paste-users

Reply via email to