Skip to content

Commit

Permalink
Add rack-canonical-host to redirect bridgetroll.herokuapp to www.brid…
Browse files Browse the repository at this point in the history
  • Loading branch information
tjgrathwell committed Oct 28, 2013
1 parent 17a76b7 commit a6359a9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ gem 'omniauth-meetup'
gem 'gravatar_image_tag'
gem 'simple_form'
gem 'sentry-raven'
gem 'rack-canonical-host'

group :production do
gem 'pg'
Expand Down
4 changes: 4 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,9 @@ GEM
rack (1.4.5)
rack-cache (1.2)
rack (>= 0.4)
rack-canonical-host (0.0.8)
addressable
rack (~> 1.0)
rack-ssl (1.3.3)
rack
rack-test (0.6.2)
Expand Down Expand Up @@ -347,6 +350,7 @@ DEPENDENCIES
pg
poltergeist
quiet_assets
rack-canonical-host
rails (= 3.2.14)
rails_12factor
rb-fsevent
Expand Down
1 change: 1 addition & 0 deletions config.ru
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# This file is used by Rack-based servers to start the application.

require ::File.expand_path('../config/environment', __FILE__)
use Rack::CanonicalHost, ENV['CANONICAL_HOST'] if ENV['CANONICAL_HOST']
run Bridgetroll::Application

0 comments on commit a6359a9

Please sign in to comment.