Search code examples
pythonwsgicherokeeuwsgi

uWSGI with Cherokee: first steps


Has anyone tried using uWSGI with Cherokee? Can you share your experiences and what documents you relied upon the most? I am trying to get started from the documentation on both (uWSGI and Cherokee) websites. Nothing works yet. I am using Ubuntu 10.04.


Edit: To clarify, Cherokee has been working fine. I am getting the error message:

uWSGI Error, wsgi application not found

So something must be wrong with my configurations. Or maybe my application.


Solution

  • Yep, I just recently set this up in Ubuntu Lucid for a Pylons app.

    First, I grabbed the latest cherokee from the team PPA. https://launchpad.net/~cherokee-webserver/+archive/ppa

    Next I installed the uwsgi latest into my virtualenv my app lives in via Pip which the uwsgi docs walk you through. http://projects.unbit.it/uwsgi/wiki/Install

    My app was already deployed via mod_wsgi so I was looking to reuse my .wsgi file. I ran into an issue getting the syntax for the uwsgi call right so I got some great help on their mailing list: http://lists.unbit.it/pipermail/uwsgi/2010-June/000347.html

    So I went through the docs in the cherokee cookbook and replaced the uwsgi line with a tweaked version of what was replied in my mailing list question.

    It works pretty sweet and almost outperformed mod_wsgi 2x in testing hits to a simple pylons app served page.

    Hope that helps.