We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 35ffba3 commit ea5b173Copy full SHA for ea5b173
1 file changed
app.py
@@ -1,10 +1,12 @@
1
-from flask import Flask, render_template
+import os
2
+from flask import Flask
3
4
app = Flask(__name__)
5
-@app.route("/")
6
-def home () :
7
- return render_template("index.html")
+@app.route('/')
+def home():
8
+ return "Hello from Ray on Azure!"
9
-if __name__ == "__main__":
10
- app.run(debug=True)
+if __name__ == '__main__':
11
+ port = int(os.environ.get("PORT", 8080)) # Default to 8080
12
+ app.run(host='0.0.0.0', port=port)
0 commit comments