>From a previous conversation I learned that TOUCH_RELOAD could be
passed as UWSGI variable. My current setup:

server {
    listen 8080;
    server_name ...;

    location / {
        include uwsgi_params;

        uwsgi_pass unix:///var/tmp/uwsgi.sock;
        uwsgi_param UWSGI_CHDIR /appdir/;
        uwsgi_param UWSGI_SCRIPT app.wsgi;
        uwsgi_param UWSGI_TOUCH_RELOAD /appdir/app.wsgi;
    }

    location /static/ {
        root /appdir/static;
    }
}

This works fine, when I touch the file it does update. However, uWSGI
continuously spawns new interpreters to handle the same application.
It appears like the original mod time isn't updated when a new mod
time is detected and every subsequent comparison yields a new
interpreter instance:

"WSGI application 10 (SCRIPT_NAME=ubuntu.local:8080|) ready on
interpreter 0x5868e90 pid: 15701 (default app)"

Keep in mind I only have a single app in this setup.

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

Reply via email to