我在 heroku 上的 flask web 应用程序无法上线,即使我做了所有需要的事情,并且我在日志中显示构建成功
My flask web app on heroku could not go live, even though I did all that is needed, and I show on the log build successful
这是我得到的日志。由于某种原因,我的 Flask 应用程序无法在 heroku 上运行。
app[web.1]: [2020-12-13 07:39:11 +0000] [4] [INFO] Shutting down: Master
2020-12-13T07:39:11.844914+00:00 app[web.1]: [2020-12-13 07:39:11 +0000] [4] [INFO] Reason: Worker failed to boot.
2020-12-13T07:39:12.061573+00:00 heroku[web.1]: Process exited with status 3
2020-12-13T07:39:12.113274+00:00 heroku[web.1]: State changed from starting to crashed
2020-12-13T07:39:13.526369+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=yusuf-chat.herokuapp.com request_id=3bc46960-cfb6-48fe-89a4-b1ea0b0a700c fwd="197.210.70.6" dyno= connect= service= status=503 bytes= protocol=https
2020-12-13T07:39:18.989622+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=yusuf-chat.herokuapp.com request_id=c1e548d1-e568-4b7c-b145-44ed84c39c17 fwd="197.210.70.6" dyno= connect= service= status=503 bytes= protocol=https
2020-12-13T07:52:41.881317+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=yusuf-chat.herokuapp.com request_id=6c574ab4-0082-47b4-bfec-27a49f4b648a fwd="197.210.54.20" dyno= connect= service= status=503 bytes= protocol=https
2020-12-13T07:52:44.694686+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=yusuf-chat.herokuapp.com request_id=151e52d2-ade2-4cc7-a861-a9c18f456f4b fwd="197.210.226.61" dyno= connect= service= status=503 bytes= protocol=https
2020-12-13T07:56:05.523749+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=yusuf-chat.herokuapp.com request_id=f3a63c8f-a974-412b-88ce-2e36b30d1c89 fwd="197.210.55.182" dyno= connect= service= status=503 bytes= protocol=https
2020-12-13T07:56:06.006651+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=yusuf-chat.herokuapp.com request_id=50406ddf-ab46-424b-9d4b-0f2e6508c839 fwd="197.210.54.20" dyno= connect= service= status=503 bytes= protocol=https
您的申请似乎收到了 503“服务不可用”错误。
此错误可能源于各种症状。
您的问题可能出在您的应用层。
你应该确定:
- 在您的本地主机上调试您的应用程序并跟踪错误。
- 该应用程序应该 运行 在您的测试环境中没有错误。
- 您应该优化 CPU- 您的应用程序和 heroku 主机的内存使用。
- 您应该测试应用程序的路由设置。
这是我得到的日志。由于某种原因,我的 Flask 应用程序无法在 heroku 上运行。
app[web.1]: [2020-12-13 07:39:11 +0000] [4] [INFO] Shutting down: Master
2020-12-13T07:39:11.844914+00:00 app[web.1]: [2020-12-13 07:39:11 +0000] [4] [INFO] Reason: Worker failed to boot.
2020-12-13T07:39:12.061573+00:00 heroku[web.1]: Process exited with status 3
2020-12-13T07:39:12.113274+00:00 heroku[web.1]: State changed from starting to crashed
2020-12-13T07:39:13.526369+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=yusuf-chat.herokuapp.com request_id=3bc46960-cfb6-48fe-89a4-b1ea0b0a700c fwd="197.210.70.6" dyno= connect= service= status=503 bytes= protocol=https
2020-12-13T07:39:18.989622+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=yusuf-chat.herokuapp.com request_id=c1e548d1-e568-4b7c-b145-44ed84c39c17 fwd="197.210.70.6" dyno= connect= service= status=503 bytes= protocol=https
2020-12-13T07:52:41.881317+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=yusuf-chat.herokuapp.com request_id=6c574ab4-0082-47b4-bfec-27a49f4b648a fwd="197.210.54.20" dyno= connect= service= status=503 bytes= protocol=https
2020-12-13T07:52:44.694686+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=yusuf-chat.herokuapp.com request_id=151e52d2-ade2-4cc7-a861-a9c18f456f4b fwd="197.210.226.61" dyno= connect= service= status=503 bytes= protocol=https
2020-12-13T07:56:05.523749+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=yusuf-chat.herokuapp.com request_id=f3a63c8f-a974-412b-88ce-2e36b30d1c89 fwd="197.210.55.182" dyno= connect= service= status=503 bytes= protocol=https
2020-12-13T07:56:06.006651+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=yusuf-chat.herokuapp.com request_id=50406ddf-ab46-424b-9d4b-0f2e6508c839 fwd="197.210.54.20" dyno= connect= service= status=503 bytes= protocol=https
您的申请似乎收到了 503“服务不可用”错误。
此错误可能源于各种症状。
您的问题可能出在您的应用层。
你应该确定:
- 在您的本地主机上调试您的应用程序并跟踪错误。
- 该应用程序应该 运行 在您的测试环境中没有错误。
- 您应该优化 CPU- 您的应用程序和 heroku 主机的内存使用。
- 您应该测试应用程序的路由设置。