A simple Rack app to redirect from one app to another on Heroku.
$ git clone git@github.com:max/heroku-redirect.git
$ bundle install
$ foreman start
$ echo "REDIRECT_TO=http://example.com" >> .env
$ curl http://localhost:5000
$ foreman run bundle exec ruby test/web_test.rb
$ heroku create
$ heroku config:set REDIRECT_TO=http://example.com
$ git push heroku master