Running uWSGI behind Cherokee

Set the UWSGI handler for your target.

If you are using the default target (/) remember to uncheck the 'check_file' property.

Configure the "information source" (of type "Remote") specifying the socket name of uwsgi.

If your uWSGI has TCP support (version >= 0.9.2) you can build a cluster spawning the uwsgi server on different machine.

Remember to add a target for all of your URI containing static files (ex. /media /images ...) using an appropriate handler

In the current official versions of cherokee there is a uWSGI wizard. If you want to use it you have to istall uwsgi in a directory of your system PATH.

Dynamic apps

If you want to hot-add apps (without configuring the uWSGI server) you can specify in the uWSGI handler options the UWSGI_SCRIPT var:

In the section: Add new custom environment variable

specify UWSGI_SCRIPT as name, and the name of your wsgi script (without .py extension as usual) as value.

Your app will be loaded automatically at the first request.