Created
July 9, 2020 09:33
-
-
Save Gaikanomer9/9d8ed3079013d5b097340de3e7e2af2a to your computer and use it in GitHub Desktop.
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 os | |
from flask import request | |
from flask import Flask | |
app = Flask(__name__) | |
@app.route("/", methods=["GET"]) | |
def hello_there(): | |
return "Hello Cloud Run", 200 | |
if __name__ == "__main__": | |
app.run(debug=True, host="0.0.0.0", port=int(os.environ.get("PORT", 8080))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment