Il giorno 28/ott/2010, alle ore 16.15, Mike Zupan ha scritto:

> in mod_wsgi you can touch file.wsgi to reload the app without
> restarting the server.. So far the only way I've found out how to do
> it is restart the uwsgi server.. any other way to quickly reload the
> app when you've made code changes?
> 
> Thanks
> Mik


kill -HUP <pid>

will gracefully reload your app

kill -TERM <pid>

will brutally reload app

<pid> is the pid of the master process (you can save it in a file using 
--pidfile option)

In your app you can reload the code with:

import uwsgi
uwsgi.reload()

--
Roberto De Ioris
http://unbit.it

_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to