Re: Any idea concerning a re-loaded server ?

mario ruggier <[email protected]>
Newsgroups gmane.comp.web.quixote.user
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.