Heroku Cloud+Spring Boot - How to deploy the Spring Boot application on the Heroku cloud?
Hello everyone, today we will learn how to deploy a demo spring boot application on the Heroku cloud.
Let me first tell you what the Heroku cloud is!
Heroku cloud is a platform as service(PaaS) that enables developers to build, run, and operate applications entirely on the cloud. Heroku is best suitable for startups, Medium business. Heroku supports 175+ add-ons that cover various purposes – from notifications to security. In general, this cloud tech service is more user-friendly compared to EC2. Heroku helps to increase the productivity of your team by creating an environment for rolling-out and development processes.
What is Add-ons?
Add-ons are cloud services that extend Heroku apps with useful features and services, such as
- Datastores
- Logging
- Monitoring
- Content management
- You want to build an MVP(minimum viable product) app, deploy, and test it
- You will continuously improve your app based on customers’ reviews
- You don’t have DevOps engineers in the team
- The project doesn’t require huge computing power
Step1:
If you have already an account on GitHub login to "https://github.com/."
or
If you not yet registered please sign up, Join
Step2:
Create a new Github repository. Click the new repository button in the top-right. You'll have an option there to initialize the repository.
Step3:
Give a unique name to your new repository.
Here, the name of our new repository is springboot_heroku_demo. We can choose the visibility public or private.Enter your new application name and server region
Here, I entered the "spring-boot-Heroku-demo-dev" as the application name and server location United States. Then click the "Create app" buttonStep9:
Choose one deployment method.
Here I selected GitHub because our repository is Github.Here, I selected our repository as springboot_heroku_demo because we are going to deploy the same on the Heroku cloud.
Step11( Optional)
Automatic deploys: enables the selected branch to be automatically deployed on this app.
Step12:Manual Deploy: Deploy the current state of a branch to this app.
Step13: