This repository has been archived by the owner. It is now read-only.
Trawl through your Github commits.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
dist
.bowerrc
.editorconfig
.gitignore
.jshintrc
Gemfile
Gemfile.lock
LICENSE.txt
Procfile
Procfile.dev
README.md
app.rb
bower.json
config.ru
deploy.sh
env.sh.example
ermagerd.jpg
gulpfile.js
package.json
preprocessor.js
screenshot1.png

README.md

girtib-treller

Screenshot

How to Run Locally

Register a Github application. For local development, set its 'Authorization callback URL' to http://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 git@heroku.com: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