Skip to content

Instantly share code, notes, and snippets.

@louismullie
Created May 30, 2018 23:27
Show Gist options
  • Save louismullie/dfbc3b7ace0852d64ef9dcae213b8861 to your computer and use it in GitHub Desktop.
Save louismullie/dfbc3b7ace0852d64ef9dcae213b8861 to your computer and use it in GitHub Desktop.
Lightest standalone Python Flask daemon server
# 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