Last active
December 21, 2015 04:19
-
-
Save bhoomit/6248786 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 os | |
| from flask import Flask, redirect, request, current_app, jsonify | |
| app = Flask(__name__) | |
| @app.route('/', methods=['GET','POST']) | |
| def hello(): | |
| return "Hello World" | |
| if __name__ == '__main__': | |
| # Bind to PORT if defined, otherwise default to 5000. | |
| port = int(os.environ.get('PORT', 5000)) | |
| 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