Why does this rackup file work with Thin, but not WEBrick or Unicorn?
问题 I am having a strange issue running my static website locally (for testing). Both WEBrick and Unicorn are causing an assertion failure in Rack when navigating to root. However Thin works perfectly. My rackup file 'config.ru': # This is the root of our app @root = File.expand_path(File.dirname(__FILE__)) + '/site' default_charset = "; charset=UTF-8" run Proc.new { |env| # Extract the requested path from the request path = Rack::Utils.unescape(env['PATH_INFO']) index_file = @root + "#{path}