Skip to content

Latest commit

 

History

History

livelessons-cloud-heroku

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Lesson 3: Reaching For The Clouds (Heroku)

Introduction

This example shows how you can push a Spring Boot application to Heroku. You will need a Heroku account and the heroku command line toolbelt installed. This sample uses the heroku-maven-plugin to directly push the build application jar.

Prerequisites

Ensure that you have logged into Heroku and created an application:

$ heroku login
$ heroku create -n

You will need the name of the created application later.

Pushing to Heroku

To build an push the application use the following command:

$ mvn clean package heroku:deploy -Dheroku.appName=<appname>
Note
The upload to Heroku can take some time to complete.