【发布时间】:2018-10-16 11:27:12
【问题描述】:
我正在尝试将我的 Spring Boot 应用程序部署到 Heroku,但我不断收到:
2018-05-06T14:41:35.181889+00:00 heroku[web.1]: Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 90 seconds of launch
2018-05-06T14:41:35.182093+00:00 heroku[web.1]: Stopping process with SIGKILL
2018-05-06T14:41:35.482221+00:00 heroku[web.1]: Process exited with status 137
2018-05-06T14:41:35.496155+00:00 heroku[web.1]: State changed from starting to crashed
我已经看到一些答案告诉我这样的地方
server.port=${PORT:8080}
在我的应用程序属性中,但它仍然无法正常工作。
我没有看到其他任何我能做的事情,也没有进一步的输出可以提示我找到问题的根源。
有什么想法吗?
【问题讨论】:
-
您是否要指定自己的端口?你能发布你的Procfile吗?
-
@jusermar10 根据 Herokus 文档,我不需要 Procfile。因为它是一个 Spring Boot 应用程序,所以会自动检测到所有内容。据我了解,没有必要使用
$PORT设置端口,但我可能在这里忽略了一些东西..
标签: spring-boot heroku