31 March 2014

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
1
git remote -v
  • Push app to heroku
1
git push heroku master
  • Logging
1
heroku logs --app maltretieren
  • Remove app
1
git remote rm heroku
  • Add a repository
1
git remote add heroku git@heroku.com:maltretieren.git
  • Restart
1
heroku restart
  • Changes
1
2
3
git add .
git commit -am "save all changed files & remove deleted ones"
git push heroku master
  • Set environment variables
1
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
Drop me a line!