Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch - Heroku

后端 未结 8 593
情话喂你
情话喂你 2020-12-31 11:39

I am trying to deploy my server on heroku. I got this error:

Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch
<         


        
相关标签:
8条回答
  • 2020-12-31 12:35

    It's possible that you are making request without wait the server finish run, so it break because cannot finish building before 90 seconds.

    It's a guess that are happening here.

    0 讨论(0)
  • 2020-12-31 12:35

    This problem occurs when Heroku can not find the port specified in Procfile.

    A simple solution to this problem is doing a port setting dynamically by Procfile.

    Add in Procfile ->

    web: java -Dserver.port=$PORT $JAVA_OPTS -jar target/nome_do_meu_app.jar

    Remember that the Maven packaging should be JAR.

    0 讨论(0)
提交回复
热议问题