English 中文(简体)
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.

最佳回答

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.

问题回答

I got cherokee + uwsgi + django running on lucid. It was a little tricky getting going (figuring out how to point uwsgi to the wsgi file was the hardest part for me, too), but I m quite happy with the results. I documented the steps I took at http://blog.swwomm.com/2010/06/cherokee-django.html.

There seems to be an issue with the make method of installation on the uwsgi docs. Use python uwsgiconfig.py --build instead. That worked for me. Cherokee, Django running on Ubuntu 10.10.





相关问题
Can Django models use MySQL functions?

Is there a way to force Django models to pass a field to a MySQL function every time the model data is read or loaded? To clarify what I mean in SQL, I want the Django model to produce something like ...

An enterprise scheduler for python (like quartz)

I am looking for an enterprise tasks scheduler for python, like quartz is for Java. Requirements: Persistent: if the process restarts or the machine restarts, then all the jobs must stay there and ...

How to remove unique, then duplicate dictionaries in a list?

Given the following list that contains some duplicate and some unique dictionaries, what is the best method to remove unique dictionaries first, then reduce the duplicate dictionaries to single ...

What is suggested seed value to use with random.seed()?

Simple enough question: I m using python random module to generate random integers. I want to know what is the suggested value to use with the random.seed() function? Currently I am letting this ...

How can I make the PyDev editor selectively ignore errors?

I m using PyDev under Eclipse to write some Jython code. I ve got numerous instances where I need to do something like this: import com.work.project.component.client.Interface.ISubInterface as ...

How do I profile `paster serve` s startup time?

Python s paster serve app.ini is taking longer than I would like to be ready for the first request. I know how to profile requests with middleware, but how do I profile the initialization time? I ...

Pragmatically adding give-aways/freebies to an online store

Our business currently has an online store and recently we ve been offering free specials to our customers. Right now, we simply display the special and give the buyer a notice stating we will add the ...

Converting Dictionary to List? [duplicate]

I m trying to convert a Python dictionary into a Python list, in order to perform some calculations. #My dictionary dict = {} dict[ Capital ]="London" dict[ Food ]="Fish&Chips" dict[ 2012 ]="...

热门标签