Created
May 30, 2018 23:27
-
-
Save louismullie/dfbc3b7ace0852d64ef9dcae213b8861 to your computer and use it in GitHub Desktop.
Lightest standalone Python Flask daemon server
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
# run with: gunicorn coreslicer:app --daemon | |
@app.route('/endpoint', methods = ['POST']) | |
def handle_endpoint_function(): | |
pass | |
def app(environ, start_response): | |
port = 8000 | |
app.run(host='0.0.0.0', port=port) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment