i0110 commited on
Commit
6dcefc4
verified
1 Parent(s): 6a6c7c6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -77,4 +77,5 @@ def index():
77
  return render_template('index.html')
78
 
79
  if __name__ == '__main__':
80
- app.run(debug=True, host="0.0.0.0")
 
 
77
  return render_template('index.html')
78
 
79
  if __name__ == '__main__':
80
+ port = int(os.getenv("PORT", 5000)) # 鑾峰彇鐜鍙橀噺 PORT锛岄粯璁や负 5000
81
+ app.run(debug=False, host="0.0.0.0", port=port)