GitHub Heroku Connect - missybarringer/Project-2 GitHub Wiki
How to connect a GitHub Repository to Heroku for Automatic Deployments
This short guide will take you through the steps of creating a repository, and then connecting your new repository to a Heroku application. This will allow for continuous deployment everytime you push the master branch of your GitHub repository!
Note: Please ensure your app functions properly locally with no errors. Fix any errors that are occurring or you can expect your application to not deploy.
Create your GitHub Repository
First, we need to create a new GitHub repository.
-
Navigate to GitHub and sign into your account.
-
On the left-side navbar, click the
Newbutton next toRepositories

- Name your new repository and then click
Create repository.

Create New Heroku Application
Now that we have a GitHub repository, we need to create a new Heroku Application. We will do this via Heroku's website.
-
Navigate to Heroku
-
Login and on your dashboard click
Newand then in the dropdown clickCreate new app.

- Next, name your new application and click
Create app.

- On the
Deploytab, clickGitHub(connect to GitHub)

- Next, click
Connect to GitHub.

- A modal will appear asking you to
Authorize Herokuto access your GitHub. ClickAuthorize Heroku.

- Now that you have authorized Heroku and given access to your GitHub. Use the search box to search for the repository you created earlier.

- Finally, click
Connectto the right of the repo you created earlier.

- Scroll down to the
Automatic Deploymentsection, and clickEnable Automatic Deployments.
Now you are good to go! Whenever you are working on your project and you push to master via PR (You should never be pushing directly to master!) it will automatically push to Heroku, updating your live application!
- We have also created a video guide for you to follow along with if you need
If you have any further questions or get stuck, please ask your TAs for assistance.