在 Heroku 上部署 Flask 应用程序时出现以下错误。
2020-10-11T05:28:50.452007+00:00 app[web.1]: * Serving Flask app "app" (lazy loading)
2020-10-11T05:28:50.452050+00:00 app[web.1]: * Environment: production
2020-10-11T05:28:50.452113+00:00 app[web.1]: WARNING: This is a development server. Do not use it in a production deployment.
2020-10-11T05:28:50.452210+00:00 app[web.1]: Use a production WSGI server instead.
2020-10-11T05:28:50.452246+00:00 app[web.1]: * Debug mode: on
2020-10-11T05:28:50.462079+00:00 app[web.1]: * Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
2020-10-11T05:29:48.134889+00:00 heroku[web.1]: Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch
2020-10-11T05:29:48.151545+00:00 heroku[web.1]: Stopping process with SIGKILL
2020-10-11T05:29:48.224518+00:00 heroku[web.1]: Process exited with status 137
2020-10-11T05:29:48.266775+00:00 heroku[web.1]: State changed from starting to crashed
2020-10-11T10:08:59.088712+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=qbdeployment.herokuapp.com request_id=7bf072d9-ed06-46ff-b463-797f74881a32 fwd="122.179.230.179" dyno= connect= service= status=503 bytes= protocol=https
2020-10-11T10:08:59.829982+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=qbdeployment.herokuapp.com request_id=7c158f7d-6ce3-44fe-87fd-24adfbfbd43e fwd="122.179.230.179" dyno= connect= service= status=503 bytes= protocol=https
2020-10-11T10:09:10.062949+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=qbdeployment.herokuapp.com request_id=fc43dec0-8976-45a6-bec7-87e749125436 fwd="122.179.230.179" dyno= connect= service= status=503 bytes= protocol=https
2020-10-11T10:09:10.678640+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=qbdeployment.herokuapp.com request_id=c61189c8-4ca8-4e73-8697-8279f69fefef fwd="122.179.230.179" dyno= connect= service= status=503 bytes= protocol=https