How to setup URLs for static site with Ruby Rack on Heroku
问题 My site is here. It used to be a Django-powered blog. However I no longer update it so I just wanted to make it a static HTML site. I wget'ed it and moved it to Heroku with Ruby Rack. However every URL resolves to the home page. This is because of my config.ru file: use Rack::Static, :urls => ["/media/images", "/media/js", "/media/css"], :root => "public" run lambda { |env| [ 200, { 'Content-Type' => 'text/html', 'Cache-Control' => 'public, max-age=86400' }, File.open('public/index.html',