> <html><head><title>So finally - what is the best way to autoreload uwsgi
> on file change?</title>
> <META http-equiv=Content-Type content="text/html; charset=utf-8">
> </head>
> <body>
> <span style=" font-family:'Courier New'; font-size: 9pt;">Hello,<br>
> <br>
> I saw here several times questions about uwsgi autoreload, what is useful
> during the development.<br>
> <br>
> So what is the best way currently, to do autoreload if some files
> changed/updated?<br>
> <br>
> 1. use emperor touch?<br>
> 2. use separate thread or process what monitor file changes and send some
> signal to uwsgi? (what one then?)<br>
> 3. use inotify? or some analogue?<br>
> 4. some other good way?<br>
> </span><a style=" font-family:'arial'; font-size: 8pt;"
> href="mailto:[email protected]";></a><br>
> </body>
>
>

For me is

--touch-reload <file>

it does not relay on kernel features (like inotify or kqueue) but simply
check for mtime at each master process cycle (about 1 sec)

...as always it is a matter of taste...

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

Reply via email to