I just deployed a static page to Heroku as a static rack app. My config.ru:
use Rack::Static,
:urls => ["/stylesheets", "/images"],
:root => "public",
:index => "public/index.html"
run lambda { |env|
[
200,
{
'Content-Type' => 'text/html',
'Cache-Control' => 'public, max-age=86400'
},
File.open('public/index.html', File::RDONLY)
]
}
Now I want to redirect all request to this static index.html file. Any ideas how to achieve this?