Skip to content

Commit

Permalink
Force domain to ENV["DOMAIN"]
Browse files Browse the repository at this point in the history
  • Loading branch information
peterkeen committed Dec 14, 2011
1 parent 635dace commit 06dbb2b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions Gemfile
Expand Up @@ -7,6 +7,7 @@ gem 'sinatra'
gem 'rake'
gem 'redcarpet'
gem 'ratom'
gem 'rack-force_domain'

group :development do
gem 'shotgun'
Expand Down
2 changes: 2 additions & 0 deletions Gemfile.lock
Expand Up @@ -7,6 +7,7 @@ GEM
kgio (2.7.0)
libxml-ruby (2.2.2)
rack (1.3.5)
rack-force_domain (0.2.0)
rack-protection (1.1.4)
rack
raindrops (0.8.0)
Expand All @@ -33,6 +34,7 @@ PLATFORMS

DEPENDENCIES
foreman
rack-force_domain
rake
ratom
redcarpet
Expand Down
2 changes: 2 additions & 0 deletions config.ru
@@ -1,3 +1,5 @@
require 'app'
require 'rack/force_domain'
use Rack::ShowExceptions
use Rack::ForceDomain, ENV["DOMAIN"]
run App.new

0 comments on commit 06dbb2b

Please sign in to comment.