RubyFlow : The Ruby Community Blog

Home   Submit   Sign Up   Log In   leaders   Twitter   RSS Feed  
 

cwninja — 1 posts

http://tomlea.co.uk

Rack::ForceDomain (or source on GitHub): Because the alternatives were too complex for my simple mind. Usage on the back of a stamp:

$ gem install rack-force_domain
$ heroku config add DOMAIN="foo.com"
use Rack::ForceDomain, ENV["DOMAIN"]