Deploy ReactJS Application From Github to Heroku
Overview
- Prerequisites
- Create Heroku Application
- Add Mars Build Pack
- Connect Heroku Application to remote Github Repository
- Deploy Application
- View Application
Prerequisites
- Install NodeJS
- Create Local ReactJS Application
pushLocal ReactJS Application to remote Github Repository
Create Heroku Application
- Click here to navigate to Heroku app dashboard
- Select
Newfrom the dashboard - Ensure the
App Namefield has a unique value. - Select
Create App
Add Mars Build Pack
- The build-pack url can be found below
https://github.com/mars/create-react-app-buildpack
Connect Heroku Application to remote Github Repository
- Click the
Deploytab. - Select
Githubfrom theDeployment Methodsection. - Search for repository by entering its name in the text box.
- Click
Connect
Deploy Application
- Select
Enable Automatic Deploysto ensure that Heroku re-deploys upon everygit pushto your remote repository. - Select
Deploy Branch - Click
View Build Log - Upon completing deployment, heroku will display a log message resembling the text below.
https://${my-application-name}.herokuapp.com/ deployed to Heroku
View Application
- Click the
Open Appbutton to view the live deployment of your application




