Last active
August 29, 2015 14:05
-
-
Save sjagoe/0d9ee7c9d9c034080abe to your computer and use it in GitHub Desktop.
TERM gunicorn with eventlet
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
import flask | |
app = flask.Flask('eventlet') | |
@app.route('/') | |
def welcome(): | |
return 'some text' |
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
gunicorn --bind 127.0.0.1:6666 --worker-class eventlet app:app & | |
curl localhost:6666 | |
kill -TERM %1 |
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
eventlet | |
gunicorn | |
flask |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment