Skip to content

Latest commit

 

History

History
44 lines (29 loc) · 2.02 KB

File metadata and controls

44 lines (29 loc) · 2.02 KB

Deploy APIs (Heroku)

Notes

1. Introduction

This tutorial will have you deploying a Java app in minutes, so that it will be globally accessible instead of just on localhost.


Lab 1 Heroku Deployment

step 1 - Create an Account

Create a Free Heroku App Account

step 2 - Create an new Heroku App

  1. Navigate to the Heroku Dashboard and create a new App. Create a New App

  2. Provide a unique app name and leave all othe things default and click on create app Create a New App Form

step 3 - Deploy with Github

  1. Heroku provides three method for deployment but we'll just stick to GitHub Deployment for now. Deployment Methods

  2. Select GitHub, Search for repository and click the connect buttom beside it. Connect to repo

  3. In the Manual Deployment section, select the branch you want to deploy and click on the Deploy Branch Manual Deployment

  4. If the deployment is successful it will be display on the page together with a link to visit the app. Sucessful Deployment

  5. New app url. Mine is javarestfulapi.herokuapp.com App url

step 4 - CI/CD

Instead of manually pushing the Deploy button each time we push our code to GitHub, We can set it such that whenever we push to a particular GitHub branch it should trigger a build for us automatically. CI/CD