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
--
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+unsubscr...@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/52652245.9040600%40gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.