[Grok-dev] Re: zopectl autorestart
Martin Aspeli
optilude at gmx.net
Mon Jun 9 19:08:34 EDT 2008
Peter Bengtsson wrote:
> I've managed to hack zc.zope3recipes.ctl to accept another program
> called "autorestart". You run it like this::
>
> $ ./bin/zopectl autorestart src/mymodule
>
> It will then start an inotify watcher to watch all .py files (except
> tests) and .pt files that define a macro and whenever it spots a
> change it restarts Zope.
Why not just use the support built into paste? If you use Paste to serve
a WSGI application, you can just do:
$ paster serve --reload myprogram.ini
This is what things like Pylons, TurboGears (I think) and Repoze are
doing, and you get it for free. I'm pretty sure Philipp already
experimented with this somewhere, even.
> 2. Does inotify work on the OSX? (which I care about unlike Windows)
paster serve --reload sure works on OS X and Windows, at least. ;-)
Martin
--
Author of `Professional Plone Development`, a book for developers who
want to work with Plone. See http://martinaspeli.net/plone-book
More information about the Grok-dev
mailing list