Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update heroku deployment documentation. #466

Merged
merged 2 commits into from
Dec 18, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions docs/installation/heroku.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,19 @@ Even though we offer the One-click Heroku deployment, performing a manual deploy

heroku open
Your app should be available at : https://your-app-name.herokuapp.com/

## Setup Auto-Deployment from GitHub repository
Sometimes, we might want to update our web application every time a new PR is merged a commit pushed to the repository. Heroku has just the tool for that!

### Login to heroku.com
Visit [Heroku's website](https://www.heroku.com) and login with your credentials. After you are logged in, select the yaydoc project from the list available. When you're on the project page, navigate to the deploy tab.

### Connect to GitHub
Change the deployement method from the Heroku Git option to GitHub. A window will popup requiring OAuth authorization to your GitHub account which you must approve.

### Setup auto deploy and Deploy the application!
Once you have successfully linked your GitHub account to Heroku, search for a repository to connect to right below. You should select your fork of the [yaydoc repository](https://github.com/fossasia/yaydoc).

Choose either the master or development branch and enable the 'Wait for CI to pass before deploy' option. Now you can select Automatic Deploys and it is successfully setup.

Your app will automatically update with each update to your repository at : https://your-app-name.herokuapp.com/