On 20 January 2011 22:37, <[email protected]> wrote: > mod_wsgi currently only reloads code if the initial script is reloaded, > that's why i use paster in my development env right now. > > i would love it if you could add a full featured reload. (paster does this > by monitoring the loaded modules and their files) > that would be awesome because i would get closer to my production system in > my development environment
Have you read: http://code.google.com/p/modwsgi/wiki/ReloadingSourceCode and specifically: http://code.google.com/p/modwsgi/wiki/ReloadingSourceCode#Monitoring_For_Code_Changes You can enable reloading on source code changes yourself. I have looked at adding it as inbuilt feature, but the presence of multiple sub interpreters makes it complicated. Thus at this point leaving it up to developers to apply it when they want to. In mod_wsgi 4.0 there will be some changes which will make it possible to do this change based reloading in a better way and avoid the constant checking which will keep your hard disk spinning and wear down your battery if you are using a laptop and not on power. The hooks are there in mod_wsgi 3.X but not happy with it and because want to change it, hasn't really been advertised. Graham > cheers! > > klawd > > -- > You received this message because you are subscribed to the Google Groups > "modwsgi" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/modwsgi?hl=en. > -- You received this message because you are subscribed to the Google Groups "modwsgi" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/modwsgi?hl=en.
