This blog post was in need to setup prose gatekeeper on heroku to be able to get oAuth2 working
with github.
Commands
- Create an app on Heroku
- List remote repositories
| heroku logs --app maltretieren
|
| git remote add heroku git@heroku.com:maltretieren.git
|
| git add .
git commit -am "save all changed files & remove deleted ones"
git push heroku master
|
- Set environment variables
| heroku config:add OAUTH_CLIENT_ID=GITHUB_CLIENT_ID OAUTH_CLIENT_SECRET=GITHUB_CLIENT_SECRET NODE_ENV=production
|
Install gatekeeper on Heroku
git clone git@github.com:prose/gatekeeper.git
cd gatekeeper
heroku create maltretieren
heroku config:add OAUTH_CLIENT_ID=GITHUB_CLIENT_ID OAUTH_CLIENT_SECRET=GITHUB_CLIENT_SECRET NODE_ENV=production
git push heroku master
heroku open