Last active
June 8, 2016 01:10
-
-
Save ourway/6dc55414ddf9f6e16910 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 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) |
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
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