1
我成功部署了應用程序並運行了它的顯示應用程序錯誤的url。 經過日誌,它指出:Heroku部署在Heroku上 - 錯誤R10
* Running on http://127.0.0.1:5000/
Web process failed to bind to $PORT within 60 seconds of launch
Procfile
web: python run.py ${PORT}
run.py
from app import app
app.run(debug=False)
我也試圖與
from os import environ
from app import app
app.run(debug=False, port=environ.get("PORT", 5000), processes=2)
在這兩種情況下的錯誤仍然堅持
views.py
@app.route('/')
@app.route('/login', methods=["GET","POST"])
def login():
....