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 <
Simple solution:
web: java -Dserver.port=$PORT $JAVA_OPTS -jar target/myapi-1.0.0.jar
Replace myapi-1.0.0 with the name of your jar or use *
myapi-1.0.0
*
Note: The order of the variables matter. For example: the following doesn't work.
web: java $JAVA_OPTS -Dserver.port=$PORT -jar target/myapi-1.0.0.jar