Re: supervisor
Dne 22. 10. 2013 18:24, Diogene Laerce napsal(a):
>
>>>> 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 :)
>
> Actually it didn't work for me : all my troubles remained the same.
>
> I found another software in the repositories : monit. It works (well I
> managed to
> make it work..) and I can even monitor CPU load with it. But I didn't
> see anyone
> use it in a django stack, do you know why ?
>
> Thanks anyway
>
Never heard of monit... so can't tell you much :)
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/5266A78F.5090801%40gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home