Skip to content

Commit

Permalink
Tidy up config.ru file.
Browse files Browse the repository at this point in the history
  • Loading branch information
nelstrom committed Mar 25, 2011
1 parent 3d18466 commit e00b483
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions config.ru
@@ -1,8 +1,7 @@
require "rubygems" require 'rubygems'
require 'rack/rewrite' require 'rack/rewrite'


use Rack::Rewrite do use Rack::Rewrite { rewrite '/', '/index.html' }
rewrite '/', '/index.html'
end
use Rack::Static, :urls => ['/'], :root => "public" use Rack::Static, :urls => ['/'], :root => "public"

run Rack::Directory.new('public') run Rack::Directory.new('public')

0 comments on commit e00b483

Please sign in to comment.