[Grok-dev] zopectl autorestart
peter at fry-it.com
Mon Jun 9 10:34:41 EDT 2008
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. Restart on my laptop takes 2.5 seconds which
is annoying this beats the hell out of having to switch console,
Ctrl-C, arrow up, hit Enter, wait. I heard rumors of running Grok on
paster serve but nothing has been done there yet. Django already does
this except its restarts are < 1 sec and I haven't looked at how they
actually do it under the hood.
A couple of questions::
1. Who can help me review this patch into zc.zope3recipes?
2. Does inotify work on the OSX? (which I care about unlike Windows)
3. Has anybody ever used Gamin  (...which I found quite useless
compared to pyinotify)?
More information about the Grok-dev