Skip to content

Instantly share code, notes, and snippets.

@Gaikanomer9
Created July 9, 2020 09:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Gaikanomer9/9d8ed3079013d5b097340de3e7e2af2a to your computer and use it in GitHub Desktop.
Save Gaikanomer9/9d8ed3079013d5b097340de3e7e2af2a to your computer and use it in GitHub Desktop.
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