Heroku is a platform-as-a-service that runs applications on AWS instances located in the US-East and EU-West regions. To deploy an app on Heroku, developers first create an Heroku account, install the Heroku Toolbelt CLI, and clone a sample project. They then create a Heroku remote, push their code to both GitHub and Heroku using git, and open the deployed app in a browser via its Heroku URL.
2. What is Heroku
Heroku is a Platform-as-a-Service (PaaS) from Salesforce.com Company
Heroku runs on AWS instance
Hosted in the US-East & EU-West regions
3. Build App on local machine
Create an Heroku Accouthttps://id.heroku.com/login
Download & Install Heroku ToolBelt (Command line interface)
https://toolbelt.heroku.com/
Go to Command Prompt
1. Execute “heroku login”
2. Create clones/copies simple project skeleton project in your local machine
Execute “git clone https://github.com/heroku/java-getting-started.git”
4. Deploy App on Heroku
Create git remote “heroku”
Execute “heroku create <yourappname>”
Import Project & Modify code locally in your IDE
Push Code to GitHub & Deploy on Heroku
Execute “git push heroku master”
Open URL of the app in your browser
http://<yourappname>.herokuapp.com/