[Grok-dev] Re: zopectl autorestart

Raphael Ritz r.ritz at biologie.hu-berlin.de
Wed Jun 11 08:14:25 EDT 2008


Martin Aspeli wrote:
> Tim Terlegård wrote:
>> On Jun 10, 2008, at 1:08 AM, Martin Aspeli wrote:
>>> 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
>>
>> Because grok is not wsgified yet...
> 
> I thought Zope 3 had a WSGI publisher?

Either use Twisted right away or via

http://pypi.python.org/pypi/zope.paste/0.3

See also

http://awkly.org/2006/01/25/zopepaste-wsgi-applications-in-zope-3-using-pastedeploy/

and for something more recent

    http://vanrees.org/weblog/philipp-von-weitershausen-grok-and-wsgi

Raphael


> 
> It shouldn't even be that hard. WSGI is pretty easy. Famous last words, 
> I'm sure. But if it were me, I'd rather put time into making Grok 
> deployable with WSGI and paste than in recreating something Paste 
> already has.
> 
> Martin
> 



More information about the Grok-dev mailing list