This is what I found to theoretically work from git hub.com-pylons-wsgi-example
import os, sys sys.path.append('/home/user/test.sample.com/Helloworld') os.environ['PYTHON_EGG_CACHE'] = '/home/user/tmp' from paste.deploy import loadapp def application(environ, start_response): environ['SCRIPT_NAME'] = environ['PATH_INFO'] application = loadapp('config:/home/user/test.sample.com/production.ini') return application(environ, start_response)
Tried this on dreamhost and I get:
An error occurred while importing passenger_wsgi.py
I also tried the virtual environment, but it did not work either.
remember that after following the instructions i have python 2.6 but don't activate in the virtual directory.
Any ideas?
I also tried adding:
from fcgi import WSGIServer
and after def application:
server = WSGIServer(application) server.run()
But still get the same error. I'm sorry this was a little more visual, so I could debug passenger_content
source share