无法打开部署的Heroku应用程序,获得状态137并用代码= H10崩溃

发布于 2025-02-13 01:26:51 字数 1415 浏览 0 评论 0原文

我使用MongoDB创建了一个带有Create-React-app和Nodejs/Express的Fullstack应用程序。该应用程序在开发中运行良好,但是在成功地与Heroku构建和部署它之后,试图打开该应用程序会导致以下错误消息:

2022-07-04T14:40:00.876477+00:00 APP [web.1]:[333M [Nodemon]观看扩展:JS,MJS,JSON [39m 2022-07-04T14:40:00.876761+00:00应用程序[Web.1]:[32M [Nodemon] starting node inde inde index.js [39m 2022-07-04T14:40:31.255026+00:00应用程序[Web.1]:连接到34.233.234.200:27017关闭 2022-07-04T14:40:31.783355+00:00 App [Web.1]:[32M [Nodemon]清洁出口 - 等待更改,然后再重新启动[39M 2022-07-04T14:40:59.210171+00:00 Heroku [Web.1]:错误R10(启动超时) - >网络过程未能在启动的60秒内绑定到$端口 2022-07-04T14:40:59.266895+00:00 Heroku [Web.1]:与Sigkill停止过程 2022-07-04T14:40:59.453613+00:00 Heroku [Web.1]:以状态退出的过程137 2022-07-04T14:40:59.506533+00:00 Heroku [web.1]:状态从开始崩溃 2022-07-04T14:41:00.871320+00:00 HEROKU [路由器]:at = error code = h10 desc =“ app crasted” method = get path =“/“ host = tourney-dpocsai.herokuapp.herokuapp.com request_id = 2f82a5f6 -E99F-48F6-8DA2-F0B27F140486 fwd =“ 99.247.92.188” dyno = connect = service = sterage = status = 503 bytes = stolopty = https 2022-07-04T14:41:01.208673+00:00 HEROKU [路由器]:at = error code = h10 desc =“ app crasted” method = get path =“/favicon.ico“ request_id = d8a9b491-35c3-415e-8517-3f296c54feea fwd =“ 99.247.92.188” dyno = connect = connect = service = sterair = status = 503 bytes = 503 bytes = protocal

=

protoct .env.port || 5000

我对解决此问题的解决方案完全失去了。任何帮助将不胜感激。

I created a fullstack app with create-react-app and nodeJS/express, using mongoDB. The app works fine in development, but after successfully building and deploying it with heroku, trying to open the app causes the following error message:

2022-07-04T14:40:00.876477+00:00 app[web.1]: [33m[nodemon] watching extensions: js,mjs,json[39m
2022-07-04T14:40:00.876761+00:00 app[web.1]: [32m[nodemon] starting node index.js[39m
2022-07-04T14:40:31.255026+00:00 app[web.1]: connection to 34.233.234.200:27017 closed
2022-07-04T14:40:31.783355+00:00 app[web.1]: [32m[nodemon] clean exit - waiting for changes before restart[39m
2022-07-04T14:40:59.210171+00:00 heroku[web.1]: Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch
2022-07-04T14:40:59.266895+00:00 heroku[web.1]: Stopping process with SIGKILL
2022-07-04T14:40:59.453613+00:00 heroku[web.1]: Process exited with status 137
2022-07-04T14:40:59.506533+00:00 heroku[web.1]: State changed from starting to crashed
2022-07-04T14:41:00.871320+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=tourney-dpocsai.herokuapp.com request_id=2f82a5f6-e99f-48f6-8da2-f0b27f140486 fwd="99.247.92.188" dyno= connect= service= status=503 bytes= protocol=https
2022-07-04T14:41:01.208673+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=tourney-dpocsai.herokuapp.com request_id=d8a9b491-35c3-415e-8517-3f296c54feea fwd="99.247.92.188" dyno= connect= service= status=503 bytes= protocol=https

my Procfile has one line: web: npm run start

I am using const PORT = process.env.PORT || 5000

I am totally lost as to what I could do to fix this issue. Any help would be appreciated.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文