scratch/output/Scratch/fr/blog/2010-08-23-Now-heberged-on-heroku/code/config.ru
Yann Esposito (Yogsototh) 7b5cfbf3e0 Updated content
2010-08-23 15:34:35 +02:00

11 lines
265 B
Ruby

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