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.