3
use Rack::Static, :urls => ['/stylesheets', '/images'], :root => 'public'
run proc { |env| [200, { 'Content-Type' => 'text/html', 'Cache-Control' => 'public, max-age=86400' }, File.open('public/index.html')] }
当我机架化时,我得到一个叫做Rack :: File:Class的私有方法`open'。真的看不到问题在哪里。运行机架1.1。请帮助...尝试提供静态文件时机架出现错误