首页 > 解决方案 > 使用代码 h10 加载 heroku 应用程序错误(应用程序崩溃)

问题描述

我有这个反应/节点应用程序,它在本地运行良好,但实时推送它似乎没有加载任何东西......

我有这些启动脚本:

根目录 package.json

"start": "cd react-web && npm start"

反应网络包.json

 "start": "node --max_old_space_size=2560 && export REACT_APP_CUSTOMER_ENVIRONMENT=gianlucaherokutest && checkEnvironmentForBuild && react-app-rewired start",

在我的 procfile 中,web: npm start 当我去查看应用程序是否可以实时运行时,它会在下面没有上下文的情况下给我这个错误,因此很难调试。有人看到有什么不对吗?

2021-04-19T23:57:40.982638+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=cleaningassistant.herokuapp.com request_id=45680a7d-0b1a-46e2-91f8-289712e55746 fwd="207.244.109.179" dyno= connect= service= status=503 bytes= protocol=http
2021-04-19T23:57:41.605460+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=cleaningassistant.herokuapp.com request_id=c8b947c2-ef86-4c89-b343-649df7d86e3e fwd="207.244.109.179" dyno= connect= service= status=503 bytes= protocol=http

标签: javascriptnode.jsreactjs

解决方案


推荐阅读