【问题标题】:Heroku error during deployment of mern application部署 mern 应用程序期间的 Heroku 错误
【发布时间】:2020-05-30 11:47:44
【问题描述】:

我刚刚尝试部署我的第一个 Heroku 应用程序,但不幸的是我遇到了错误。

命令heroku logs --tail抛出如下错误:

2020-02-14T16:35:34.990792+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/"host=agile-wildwood-52268.herokuapp.com request_id=5edfe87f-b4c7-42ee-a856-03ab806613ec fwd="88.68.64.245" dyno= connect= service= status=503 bytes= protocol=https

2020-02-14T16:35:37.110579+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=agile-wildwood-52268.herokuapp.com request_id=4e0aeeee-f828-4f85-a18c-25d54bfe3221 fwd="88.68.64.245" dyno= connect= service= status=503 bytes= protocol=https

我不知道这个错误可能是在哪里引起的,感谢任何帮助。谢谢

【问题讨论】:

    标签: heroku deployment heroku-cli


    【解决方案1】:

    所以我发现了问题所在。 我没有在 heroku 仪表板上设置环境变量。 如果您遇到类似问题,请按照以下步骤操作:

    1. 转到https://dashboard.heroku.com/apps
    2. 点击您的应用程序
    3. 进入设置并点击“显示配置变量”
    4. 输入所有环境变量

    希望对你有帮助

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-04-06
      • 1970-01-01
      • 1970-01-01
      • 2021-10-29
      • 2016-09-10
      • 2017-02-09
      • 2013-09-07
      • 2017-12-20
      相关资源
      最近更新 更多