On Feb 9, 2006, at 11:56 AM, Peter Wilkinson wrote:
On 09/02/2006, at 9:23 PM, mario ruggier wrote:

Maybe in quixote or qp, a separate script/process could watch
specific source files, as well as (re-)spawn off the actual web
process.

I use a very similar idea for development in another web framework
running under a Medusa server that I'm migrating from to QP at the
moment. I looked what Cherrypy was doing and decided that I didn't
need the complication of threads. All I do is start my dev server
with a wrapper script that does a 'find' for all *.py files (could be
*.qpy) in ./lib and checks that list every second with stat and
restarts the main process if a file is modified. Given that we'd
never run anything like this in production we were more than happy to
live with the obvious limitations of this approach given how simple
the wrapper script is.

Would you post such a script? Maybe just a gutted version... Was just about to suggest you add it to the qx wiki... and I discover there is already a relevant entry: http://www.quixote.ca/qx/ReloadChangedPages


_______________________________________________
Quixote-users mailing list
[email protected]
http://mail.mems-exchange.org/mailman/listinfo/quixote-users

Reply via email to