Skip to content
This repository has been archived by the owner on Dec 5, 2017. It is now read-only.

Commit

Permalink
pin version of rack and disable loading files
Browse files Browse the repository at this point in the history
  • Loading branch information
garethr committed Apr 3, 2012
1 parent 7412a8b commit b99432b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ source 'https://gems.gemfury.com/vo6ZrmjBQu5szyywDszE/'

gem 'slimmer'
gem "jekyll"
gem 'rack'
gem 'rack', '1.3.5'
gem 'rake', '0.9.2'
gem "term-ansicolor"
gem "rack-contrib"
Expand Down
4 changes: 2 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ GEM
nokogiri (1.5.2)
null_logger (0.0.1)
posix-spawn (0.3.6)
rack (1.4.1)
rack (1.3.5)
rack-contrib (1.1.0)
rack (>= 0.9.1)
rake (0.9.2)
Expand All @@ -40,7 +40,7 @@ PLATFORMS

DEPENDENCIES
jekyll
rack
rack (= 1.3.5)
rack-contrib
rake (= 0.9.2)
router-client (= 2.0.3)
Expand Down
5 changes: 2 additions & 3 deletions config.ru
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ map "/designprinciples/styleguide" do
run Rack::File.new("_site/styleguide.html")
end

use Rack::TryStatic, root: "_site/", urls: %w[/], :try => ['.html', 'index.html', '/index.html']

#use Rack::TryStatic, root: "_site/", urls: %w[/], :try => ['.html', 'index.html', '/index.html']
# otherwise 404 NotFound
run lambda { [404, {'Content-Type' => 'text/plain'}, ['whoops! Not Found']] }
#run lambda { [404, {'Content-Type' => 'text/plain'}, ['whoops! Not Found']] }

0 comments on commit b99432b

Please sign in to comment.