Skip to content

Instantly share code, notes, and snippets.

@ourway
Last active June 8, 2016 01:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save ourway/6dc55414ddf9f6e16910 to your computer and use it in GitHub Desktop.
Save ourway/6dc55414ddf9f6e16910 to your computer and use it in GitHub Desktop.
Running a bottle app with gunicorn
from bottle import route, run
@route('/')
def index():
'''test me'''
return '<h1>Hello Bottle!</h1>'
run(host='localhost', port=8080, server='gunicorn',
reload=True, workers=4, debug=True)
virtualenv pyenv
source pyenv/bin/activate
pip install gunicorn bottle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment