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

后端 未结 8 653
情话喂你
情话喂你 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:24

    Also, I would like to add that adding the following to Procfile, allowed me to deploy my Spring boot app to heroku and resolved the exception you described above:

    worker: java $JAVA_OPTS -jar target/myTargetJar-SNAPSHOT.jar

    None of the solutions, listed on the web, helped me to solve the problem, this is why I decided to post the solution which helped me here. Maybe it is not on time, though :)

提交回复
热议问题