LoginSignup
2
0

More than 5 years have passed since last update.

spring / herokuでError R10 (Boot timeout)が出た時

Posted at

概要

  • springbootアプリをheroku-container-registyでデプロイした時に以下のエラーが出た
Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch

対応

  • まぁエラーの通りなんですが。。。
    herokuによって提供されるポートを使うようにしましょう。
  • こんな感じになるでしょうか
FROM frolvlad/alpine-oraclejdk8:slim
VOLUME /tmp
# Expose is NOT supported by Heroku
# EXPOSE 8080
ADD hogehoge.jar app.jar
RUN sh -c 'touch /app.jar'
ENV JAVA_OPTS=""
CMD [ "sh", "-c", "java $JAVA_OPTS -Dserver.port=$PORT -Djava.security.egd=file:/dev/./urandom -jar /app.jar" ]

参考

2
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0