Deploying your web application on Heroku
In this section, we will deploy your application on Heroku for free. We will even use the free Redis instance available to store our session and cache.
Installing the tools
The first thing we need to do to create a Heroku application is to download the command-line tools available at https://toolbelt.heroku.com.
On Mac, you can also install it with brew
command:
> brew install heroku-toolbelt
Create an account on Heroku and use heroku login
to link the toolbelt to your account:
> heroku login Enter your Heroku credentials. Email: geowarin@mail.com Password (typing will be hidden): Authentication successful.
Then, go to your application root and type heroku create appName --region eu
. Replace appName
with a ...
Get Spring MVC: Designing Real-World Web Applications now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.