Skip to content

Instantly share code, notes, and snippets.

@ryo-murai
Created February 10, 2017 09:53
Show Gist options
  • Save ryo-murai/704ded5dc79bf623d0d012739c7b4271 to your computer and use it in GitHub Desktop.
Save ryo-murai/704ded5dc79bf623d0d012739c7b4271 to your computer and use it in GitHub Desktop.
herokuにgradleのプロジェクトをデプロイするときに気をつけること
  • gradle wrapperを実行して、生成されたファイルもgit管理する
    • Spring Initializrで作った雛型には既に含まれているので実行不要
  • heroku側で ./gradlew stageでビルドされるので、stageタスクを定義する
    • SpringBootだと認識された場合は ./gradlew build -x testが実行されるので追加不要
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment