提问者:小点点

部署中的Heroku应用程序出现H10&503错误


所以当我把我的应用程序部署到Heroku时,它就开始崩溃了。 不幸的是,日志没有帮助,因为没有细节。

  1. 我已尝试重新启动应用程序&; 这于事无补。
  2. 输入env变量
  3. 构建包设置为heroku-nodejs

以上三个是我在网上发现的。 谢谢你的帮助。

这是从Heroku来的日志

2020-07-17T12:07:45.791581+00:00 app[web.1]: npm ERR! A complete log of this run can be found in:
2020-07-17T12:07:45.791685+00:00 app[web.1]: npm ERR!     /app/.npm/_logs/2020-07-17T12_07_45_784Z-debug.log
2020-07-17T12:07:45.848851+00:00 heroku[web.1]: Process exited with status 1
2020-07-17T12:07:45.894326+00:00 heroku[web.1]: State changed from starting to crashed
2020-07-17T12:07:47.635979+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=marketool.herokuapp.com request_id=6af06835-645b-4427-b82d-1e77c46a3e98 fwd="42.106.46.78" dyno= connect= service= status=503 bytes= protocol=https
2020-07-17T12:07:49.538407+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=marketool.herokuapp.com request_id=48ff25a3-5b78-4ca6-80a0-d4d9bd170bf2 fwd="42.106.46.78" dyno= connect= service= status=503 bytes= protocol=https

共1个答案

匿名用户

解决了这个问题。

我有一个依赖错误的路径。 我们所需要的只是纠正正确的道路。