Apparently this won't be possible in OSX. See your answer here
https://groups.google.com/d/msg/web2py/Zc53Lx85g50/Ei6QJLN7JoQJ
On Sunday, May 6, 2012 6:44:19 PM UTC-4, Massimo Di Pierro wrote:
>
> We can add a restart option. Anybody wants to try a patch about this? The
> pid is stored in httpserver.pid.
>
>
> On Sunday, 6 May 2012 14:01:24 UTC-5, Yarin wrote:
>>
>> Is there any way to restart web2py from the command line. I'm working on
>> a mac, and there's no way to use the GUI to stop or restart the built-in
>> rocket server. Currently the best I can do is:
>>
>> - Start web2py: python web2py.py -a 'pass' -i 127.0.0.1 -p 8000
>> - Stop web2py: kill -SIGTERM {whatever pid was returned from start
>> script}
>>
>> This is a clumsy process, but one i'm forced to go through many times a
>> day when dealing with module development, as there's no other way to ensure
>> a clean reload of modules.
>>
>