This post will describe how to create and deploy a Java Web Application war to Heroku using Heroku CLI. You will need a basic understanding of Git and Maven, and have Git and Maven already installed on your system.
Pre-requisites
- Install Java 8, Maven and Git. For this post, I used Java 8 and Maven 3.5.
- Create a free account on heroku.com. This account will be used from Heroku CLI to login
- Download and Install Heroku CLI from here.
Following are the high-level steps to follow
- Create a Simple Spring Web Application.
- Create an application on Heroku
- Create the Procfile
- Create app.json
- Update Maven pom.xml
- Push code to Heroku