On Tue, Jan 15, 2013 at 4:31 PM, Jean-Baptiste Quenot <[email protected]> wrote:
> So uwsgi's touch-reload is great and allows to save a lot of time
> during development, but I would like it to be a little smarter:
> instead of hardcoding the list of touch files in the app
> configuration, I'd like to specify my globbing patterns directly in
> the config file, so that uwsgi computes the list of touch files at
> startup, and recomputes it at reload of course.

We use uWSGI in development too with pretty much exactly this usecase,
but instead of using uWSGI to reload the files we use
app-inotify-hookable (which I wrote):
https://metacpan.org/module/App::Inotify::Hookable

The synopsis for it has a demo of using it for uwsgi and to concat
static files.

It works very well, and scales to watching an amount of files that
grints to a halt if you use something that's doing stat() in a loop.

It's all exposed as a command-line program so you can use it even if
you're not a Perl shop, and since it's just a program that you start
and spews out debug info on STDOUT/STDERR it's easy to make it a
daemon with something like daemontools.
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to