aaron's now

  • Archive
  • RSS

nginx + uwsgi + bottle.py

The bottle documentation doesn’t say so, but the advice they give for running bottle with Apache and WSGI applies — and is just as important — with nginx and uWSGI:

import bottle
# ... build or import your bottle application here ...
# Do NOT use bottle.run() with mod_wsgi
application = bottle.default_app()

… except that’s not quite right either. I finally found the correct code in this Google Groups post:

> But I am not sure if i got it: i just need to substitute the run() 
> statement with 
> application = bottle.app() 

Yes. Thats all :) 

That only took me about 8 hours to figure out.

  • 4 months ago
  • Comments
  • Permalink
  • Share
    Tweet

Recent comments

Blog comments powered by Disqus
← Previous • Next →

About

Family guy, programmer, co-founder, coach, songwriter, performer, happy ex-lawyer, kosher at home. Fan of Dylan, Holmes, Cleveland (Browns, Cavs, Indians), The Stars According to H.A. Rey, chess.

Twitter

loading tweets…

  • RSS
  • Random
  • Archive
  • Mobile

Effector Theme by Carlo Franco.

Powered by Tumblr