[Grok-dev] Re: zopectl autorestart

Philipp von Weitershausen philipp at weitershausen.de
Wed Jun 11 18:27:01 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?

Yup. Just look at the sandbox that zopeproject generates. It's 
completely WSGIified.

> 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.

+1



More information about the Grok-dev mailing list