On 10/21/2013 02:51 PM, Diogene Laerce wrote:
> Thanks for reply.
>
>> the trick is to add supervisor command that specifically tells the
>> program to NOT daemonize
>>
>> [program:my_uwsgi]
>> command = /usr/local/bin/uwsgi -i /path/to/config.ini
>> autorestart = True
>> user = your_user
>>
>> config.ini:
>> your standard uwsgi config, but NO daemonize=logfile path
>>
>> that works perfectly
>>
>> I'm reloading all the time ..
>
> That means that you need to reload for every change in the code
> source, doesn't it ?
> There's no over way ?
>
>
Exactly, the uwsgi has no idea that you edited .py files, you need to
reload it. although there is some feature like the django server of
autoreload, but just to be safe, you should reload the uwsgi processes
by hand. I think I even saw some plugin for supervisor that does this
automatically, but I'm not sure...
Hoewer on a different note, you should have your dev code separated from
production, so you don't change it that often that it would bother you
to reload it :)
Lukas