heroku首次部署时出现应用程序错误



我第一次尝试在Heroku上部署react.js项目,但在部署后遇到了应用程序错误以下是我在CLI中获得的完整Heroku日志但我想不通。请看一看,帮我修理一下

2022-03-27T21:38:28.785305+00:00 app[web.1]: errno: -2,
2022-03-27T21:38:28.785305+00:00 app[web.1]: code: 'ENOENT',
2022-03-27T21:38:28.785305+00:00 app[web.1]: syscall: 'spawn xdg-open',
2022-03-27T21:38:28.785306+00:00 app[web.1]: path: 'xdg-open',
2022-03-27T21:38:28.785306+00:00 app[web.1]: spawnargs: [ 'http://localhost:5473' ]
2022-03-27T21:38:28.785306+00:00 app[web.1]: }
2022-03-27T21:38:28.952616+00:00 heroku[web.1]: Process exited with status 1
2022-03-27T21:38:29.035319+00:00 heroku[web.1]: State changed from up to crashed
2022-03-27T21:38:30.362490+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=prashantkr006-portfolio.herokuapp.com request_id=32017955-d828-4cb3-83bb-5549ef9b708d fwd="124.253.43.194" dyno= connect= service= status=503 bytes= protocol=https
2022-03-27T21:38:30.929163+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=prashantkr006-portfolio.herokuapp.com request_id=536688a3-05d6-4ae5-8e71-9a7416288a7c fwd="124.253.43.194" dyno= connect= service= status=503 bytes= protocol=https
2022-03-27T21:38:34.193164+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=prashantkr006-portfolio.herokuapp.com request_id=63109b08-cfb0-46c3-b456-49cfffcb4b2c fwd="124.253.43.194" dyno= connect= service= status=503 bytes= protocol=https
2022-03-27T21:38:34.734662+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=prashantkr006-portfolio.herokuapp.com request_id=f1db7ca5-c99c-4048-a461-ac45a649d965 fwd="124.253.43.194" dyno= connect= service= status=503 bytes= protocol=https
2022-03-27T21:38:36.322456+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=prashantkr006-portfolio.herokuapp.com request_id=1fe2ea64-25aa-4424-aa92-b314327af931 fwd="124.253.43.194" dyno= connect= service= status=503 bytes= protocol=https
2022-03-27T21:38:36.933721+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=prashantkr006-portfolio.herokuapp.com request_id=d5e392cd-1ccd-42b7-aa11-074c69da34b4 fwd="124.253.43.194" dyno= connect= service= status=503 bytes= protocol=https
2022-03-27T21:38:37.425993+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=prashantkr006-portfolio.herokuapp.com request_id=dbdd86bd-4a02-485e-9032-6df69426502a fwd="124.253.43.194" dyno= connect= service= status=503 bytes= protocol=https
2022-03-27T21:50:02.264561+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=prashantkr006-portfolio.herokuapp.com request_id=53022457-3a00-423f-ae40-37e33e685d23 fwd="124.253.43.194" dyno= connect= service= status=503 bytes= protocol=https
2022-03-27T21:50:02.898755+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=prashantkr006-portfolio.herokuapp.com request_id=536c5ee9-ec09-4360-8821-c8248db464a5 fwd="124.253.43.194" dyno= connect= service= status=503 bytes= protocol=https
2022-03-27T21:52:42.850643+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=prashantkr006-portfolio.herokuapp.com request_id=99a80e06-a2e5-4ae7-800a-a945e3c58ff2 fwd="124.253.43.194" dyno= connect= service= status=503 bytes= protocol=https
2022-03-27T21:52:43.403302+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=prashantkr006-portfolio.herokuapp.com request_id=c830cdd8-66ca-446b-a6cb-ad8308759ffe fwd="124.253.43.194" dyno= connect= service= status=503 bytes= protocol=https```
how to fix it?

据我所知,您的问题与此类似:在heroku 中部署react应用程序时出错

顺便说一句,如果这涉及到react.js应用程序,你应该编辑你的帖子标签,你可以放node.js而不是react.js

相关内容

  • 没有找到相关文章

最新更新