2013/1/15 Roberto De Ioris <[email protected]>:

> What about using py-auto-reload option ?

Hi Roberto,

I didn't know about this option.  I just tried it and it works great
for *.py indeed.  But what about my Cheetah Templates that I compile
at runtime?  They are not reloaded, that's problematic.  Providing a
pattern (in my case **/*.tmpl) as Andriy suggest would be "sugar on
top".

Running an external daemon is a bit problematic, I like simple
solutions that will be easy to maintain and easy to understand for
other admins.  Unless I can specify this program in some uwsgi option,
so that uwsgi spawns the external command as a daemon to monitor
files.  Something like:

{
     "uwsgi": {
         "reload-notifier": "/some/external/command"
    }
}

As a convention, this external command could exit with status code 0,
to tell uwsgi that a reload is requested.

What is the ideal solution for this usecase, in your opinion?
-- 
Jean-Baptiste Quenot
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to