how to do gunicorn + webpy?

i am getting this error


gunicorn code:subdomain_app
2010-10-16 13:09:59 [2236] [INFO] Starting gunicorn 0.11.1.9fa3376-git
2010-10-16 13:09:59 [2236] [INFO] Listening at: http://127.0.0.1:8000
2010-10-16 13:09:59 [2239] [INFO] Booting worker with pid: 2239
2010-10-16 13:10:00 [2239] [ERROR] Exception in worker process:
Traceback (most recent call last):
  File
"/Library/Python/2.6/site-packages/gunicorn-0.11.1-py2.6.egg/gunicorn/arbiter.py",
line 436, in spawn_worker
    worker.init_process()
  File
"/Library/Python/2.6/site-packages/gunicorn-0.11.1-py2.6.egg/gunicorn/workers/base.py",
line 100, in init_process
    self.wsgi = self.app.wsgi()
  File
"/Library/Python/2.6/site-packages/gunicorn-0.11.1-py2.6.egg/gunicorn/app/base.py",
line 102, in wsgi
    self.callable = self.load()
  File
"/Library/Python/2.6/site-packages/gunicorn-0.11.1-py2.6.egg/gunicorn/app/wsgiapp.py",
line 24, in load
    return util.import_app(self.app_uri)
  File
"/Library/Python/2.6/site-packages/gunicorn-0.11.1-py2.6.egg/gunicorn/util.py",
line 215, in import_app
    raise TypeError("Application object must be callable.")
TypeError: Application object must be callable.
2010-10-16 13:10:00 [2239] [INFO] Worker exiting (pid: 2239)
2010-10-16 13:10:00 [2236] [INFO] Shutting down: Master
2010-10-16 13:10:00 [2236] [INFO] Reason: Worker failed to boot.




and in code.py i have this


subdomain_app = web.subdomain_application(mappings)

def session_mw(app):
    return SessionMiddleware(app, **config_beaker)

if __name__ == "__main__":
  subdomain_app.run(session_mw)

-- 
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/webpy?hl=en.

Reply via email to