update README

This commit is contained in:
Bilal
2020-09-04 08:14:50 +03:00
parent 222b574beb
commit 47935d9eda

View File

@@ -22,9 +22,16 @@ from .ENV file is not supported
## Heroku Deploy Procedure
Add `BASIC_AUTH_USERNAME` and `BASIC_AUTH_PASSWORD` ENV variables to the Heroku.
1. Login to Heroku with : `heroku login`
Deploy master branch from local repository to the heroku : `git push heroku master` (if heroku is name of the heroku remote)
2. Create new heroku app from local repository with : `heroku create app-name-here`
3. Head to the settings tab of the new Heroku app. Under the `Buildpacks` click on `Add buildpack` button and select `nodejs` and `ruby`. Click `Save changes`
Reorder buildpacks so that `heroku/nodejs` is first.
4. Add `BASIC_AUTH_USERNAME` and `BASIC_AUTH_PASSWORD` ENV variables to the Heroku (settings tab)
5. Push repository to the Heroku with : `git push heroku master`
(For testing purposes)
Deploy non-master branch from local repository to the heroku : `git push heroku other-branch:master`