Skip to content

Instantly share code, notes, and snippets.

@jdrake
Created July 25, 2016 21:20
Show Gist options
  • Select an option

  • Save jdrake/9f875bd820cabb883b9efc864b5e14b7 to your computer and use it in GitHub Desktop.

Select an option

Save jdrake/9f875bd820cabb883b9efc864b5e14b7 to your computer and use it in GitHub Desktop.
from flask import Flask
app = Flask(__name__)
@app.route('/')
def hello_world():
return 'Hello, World!'
@app.route('/health')
def health():
return 'OK'
if __name__ == '__main__':
app.run(debug=False, port=5000, host='0.0.0.0')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment