【发布时间】: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 但它不起作用。
【问题讨论】:
我在 heroky Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch 上部署了我的 nestJS 应用程序。我更改了应用程序监听的端口 5000 但它不起作用。
【问题讨论】:
答案是将process.env.PORT 放入await app.listen(process.env.PORT || 5000);
【讨论】: