Deploying your Spring boot to Heroku
Learn how to deploy your app to heroku
We often develop software on our local machine but the real fun and fulfillment comes when it is available to a global audience. In this guide, you will learn how to deploy your Spring Boot app or any app to Heroku.
- Sign up on Heroku here
- Install Heroku Cli. Heroku CLI is a command line application that lets you create, deploy and manage Heroku apps from the command line. You can download Heroku CLI from Heroku Dev Center.
- Login using your email and password like so:
heroku login
4. Initialize git in your root folder like so:
git init
git add .
git commit -m "My first push to heroku"
5. Now, create an app using heroku create. This command creates an app and returns a name when it is done. You can do it like so:
heroku create
6. Deploy app to Heroku
git push heroku master
That’s it. You have your app deployed to Heroku.
That wraps up our tutorial today.
Leave your comments, reviews, recommendations in the comment section. If you want to learn how to develop web apps, rest apis, payment gateway, e-wallet using Java, please leave your comment in the comment section below.
What are we up to today?
We have a series on building rest api using spring boot. You can follow the guide here:
https://medium.com/zero-to-production/spring-framework-series-4554c92a69b
Email: zerotoproduction@gmail.com