-
-
Save copperlight/57e2e562f1526d225abb12e59e79af94 to your computer and use it in GitHub Desktop.
Running a bottle app with gunicorn
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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