> Hi list,
>
> First, thank you very much for providing uwsgi.  I'm using it since
> nearly 3 years for my applications, and I've seen constant progress
> and improvements.  The Debian package is also great (although it
> doesn't support pidfile2 but this is another story).
>
> Let me explain a usecase we have at my company, for providing
> hot-reload to Python developers.
>
> In /etc/uwsgi/apps-enabled I request Chef to generate one app config
> for each developer.  Here is the Chef template I use:
>
> {
>     "uwsgi": {
>         "touch-reload": <%= (Dir.glob(@app_dir + "/*/*.py") +
> Dir.glob(@app_dir + "/*.py") + Dir.glob(@app_dir + "/ui/*/*.tmpl") +
> Dir.glob(@app_dir + "/ui/*.tmpl")).inspect %>,
>         "module": "server:application",
>         "pythonpath": <%= [@app_dir + "/core"].to_json %>,
>         "uid": "www-data",
>         "gid": "www-data"
>     }
> }
>
>

What about using py-auto-reload option ?

Note: it is good only for development as it spawns a pretty heavy thread
monitoring modules

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

Reply via email to