Skip to content
This repository has been archived by the owner on Apr 15, 2018. It is now read-only.
/ girtib-treller Public archive

Trawl through your Github commits.

License

Notifications You must be signed in to change notification settings

cheshire137/girtib-treller

Repository files navigation

girtib-treller

Screenshot

How to Run Locally

Register a Github application. For local development, set its 'Authorization callback URL' to http:https://localhost:5000/auth/github/callback For deployment, its callback URL will be whatever your host is plus /auth/github/callback

cp env.sh.example env.sh
cp app/scripts/config.json.example app/scripts/config.json

Update env.sh to fill in the client ID from your new Github app as well as your client secret. You also need a session key in env.sh; you can run openssl rand -base64 40 to generate a random session key.

bundle install
npm install
foreman start -f Procfile.dev

Visit localhost:3001 in your browser.

How to Deploy to Heroku

First Time

  1. Create a new app on Heroku.
  2. git remote add heroku [email protected]:yourherokuapp.git
  3. heroku config:add BUILDPACK_URL=https://github.com/heroku/heroku-buildpack-ruby.git
  4. heroku config:set RACK_ENV=production
  5. heroku config:set GITHUB_CLIENT_ID=your_github_app_client_id
  6. heroku config:set GITHUB_CLIENT_SECRET=your_github_app_client_secret
  7. heroku config:set SESSION_KEY="your_session_key"
  8. heroku config:set FRONT_END_URL=url_to_your_heroku_app
  9. git push heroku master
  10. heroku ps:scale web=1

After It Has Been Deployed Once

./deploy.sh

Ermagerd