【问题标题】:Is there a way to access a nestJS app deployed on Heroku with the R10 error?有没有办法通过 R10 错误访问部署在 Heroku 上的 nestJS 应用程序?
【发布时间】:2020-12-14 03:52:10
【问题描述】:

我在 heroky Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch 上部署了我的 nestJS 应用程序。我更改了应用程序监听的端口 5000 但它不起作用。

【问题讨论】:

    标签: node.js heroku nestjs


    【解决方案1】:

    答案是将process.env.PORT 放入await app.listen(process.env.PORT || 5000);

    【讨论】:

      猜你喜欢
      • 2016-04-15
      • 2018-04-07
      • 2015-09-22
      • 2019-01-29
      • 1970-01-01
      • 2021-01-06
      • 2021-03-14
      • 1970-01-01
      相关资源
      最近更新 更多