Skip to content

Instantly share code, notes, and snippets.

@copperlight
Forked from ourway/bottle_and_gunicorn.py
Last active June 8, 2016 01:12
Show Gist options
  • Save copperlight/57e2e562f1526d225abb12e59e79af94 to your computer and use it in GitHub Desktop.
Save copperlight/57e2e562f1526d225abb12e59e79af94 to your computer and use it in GitHub Desktop.
Running a bottle app with gunicorn
from bottle import Bottle
app = Bottle()
@app.route('/')
def index():
'''test me'''
return '<h1>Hello Bottle!</h1>'
app.run(host='localhost', port=8080, server='gunicorn', reload=True, workers=4, debug=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment