scratch/output/Scratch/en/blog/2010-08-23-Now-heberged-on-heroku/code/config.ru

12 lines
265 B
Text
Raw Normal View History

2010-08-23 13:34:35 +00:00
require 'rubygems'
require 'rack'
require 'rack-rewrite'
use Rack::Rewrite do
rewrite %r{(.*)/$},"$1/index.html"
end
use Rack::Static, :urls => ["/"], :root => "output"
app = lambda { |env| [404, { 'Content-Type' => 'text/html' }, 'File Not Found'] }
run app