Heroku nodejs复制错误at =错误代码= H10 desc =“应用程序崩溃”方法= GET路径=“ /”

时间:2020-04-08 17:38:33

标签: node.js mongodb express heroku server

我已经通过github将应用程序部署到了heroku。启动应用程序时,我的数据库连接(mongodb和cloudinary)似乎工作正常(我的环境变量还可以)。但是,这会引发应用程序错误

heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=e-brary.herokuapp.com request_id=4ed5c859-f66b-4ce3-af24-52a301408a2c fwd="168.205.101.7" dyno= connect= service= status=503 bytes= protocol=https

heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=e-brary.herokuapp.com request_id=0228c534-ba34-45f8-85e5-1fa9bb651fff fwd="168.205.101.7" dyno= connect= service= status=503 bytes= protocol=https

在本地,我的应用有效。如您在我的代码中所见,我已经设置了“ /”路由以由索引控制器处理。

服务器正常启动,没有npm错误。

代码:https://github.com/isaacyounes04/e-brary

应用程序:https://e-brary.herokuapp.com

0 个答案:

没有答案