我正在尝试在Heroku上运行基本的示例express-gateway
http:
port: ${HTTP_PORT:-8080}
hostname: ${HOST:-localhost}
admin:
port: 9876
host: localhost
apiEndpoints:
api:
host: 'localhost'
paths: '/ip'
serviceEndpoints:
httpbin:
url: 'https://httpbin.org'
...查看日志,我得到了以下错误:
2021-02-15T18:53:09.947569+00:00 heroku[web.1]: Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch有什么想法吗?
发布于 2021-02-16 21:55:59
我设法用下面的配置解决了这个问题:
http:
port: ${PORT:-8080}
https:
port: ${PORT:-8081}
admin:
port: 9876
apiEndpoints:
api:
paths: '/ip'因此,默认的端口变量称为port,并通过删除对本地主机?的所有引用
https://stackoverflow.com/questions/66221506
复制相似问题