sbsdiffs is a flask app that is easily deployed to heroku. A reference app runs at diff.jlatt.com.
- Register a new application on Github to get an oauth consumer key and secret.
- Create a new application on Heroku.
- Generate a key for Flask sessions in python:
>>> import os
>>> os.urandom(24).encode('base64').strip()
- Set the following environment variables:
GITHUB_CONSUMER_KEY='.........'
GITHUB_CONSUMER_SECRET='..........'
FLASK_SESSION_KEY='......'
- Push to heroku:
$ git push heroku master