Heroku应用程序错误- react和node



我用nodejs创建了一个react应用程序,在启动我的heroku应用程序时,我得到了一个应用程序错误。我已经更新了heroku,创建了procfile,添加了节点作为引擎。我的应用程序仍然没有启动。请帮助。这是我的日志文件-

2021-09-01T11:44:33.891631+00:00 app[web.1]: npm ERR! A complete log of this run can be found in:
2021-09-01T11:44:33.891717+00:00 app[web.1]: npm ERR!     /app/.npm/_logs/2021-09-01T11_44_33_888Z-debug.log
2021-09-01T11:44:33.962004+00:00 heroku[web.1]: Process exited with status 1
2021-09-01T11:44:34.090659+00:00 heroku[web.1]: State changed from starting to crashed
2021-09-01T11:46:07.443211+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=quiet-castle-26018.herokuapp.com request_id=4bbb82b9-74a6-4ab1-a6a3-f4a3ed25c62b fwd="223.227.24.221" dyno= connect= service= status=503 bytes= protocol=https
2021-09-01T11:46:08.456373+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=quiet-castle-26018.herokuapp.com request_id=f004c10c-b1ba-4094-9b2d-456ced15cb7f fwd="223.227.24.221" dyno= connect= service= status=503 bytes= protocol=https
2021-09-01T11:46:25.484370+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=quiet-castle-26018.herokuapp.com request_id=6de00b8d-640b-4ed2-ad30-a729d440acc3 fwd="223.227.24.221" dyno= connect= service= status=503 bytes= protocol=https
2021-09-01T11:46:26.648725+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=quiet-castle-26018.herokuapp.com request_id=4f5601a4-85c3-4798-ae53-1eeb37340edd fwd="223.227.24.221" dyno= connect= service= status=503 bytes= protocol=https
2021-09-01T12:02:59.299054+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=quiet-castle-26018.herokuapp.com request_id=789d2879-7ff3-4282-a405-1ed057163b41 fwd="223.227.24.221" dyno= connect= service= status=503 bytes= protocol=https
2021-09-01T12:03:00.191266+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=quiet-castle-26018.herokuapp.com request_id=3010eeac-283b-4eb5-8cdd-0300c2df979b fwd="223.227.24.221" dyno= connect= service= status=503 bytes= protocol=https
Disconnected from log stream. There may be events happening that you do not see here! Attempting to reconnect...
Connection to log stream failed. Please try again later.

Heroku默认使用Node.js构建包,这对react应用程序不起作用,您不必在该项目的设置中更改构建包。

这更好地解释了问题https://stackoverflow.com/a/68992661/16471757

最新更新