试图在本地以生产模式启动Rails 3.1应用程序。
rails s
将会很好地启动开发。 当我尝试
rails s production
我遇到了这个错误:
/usr/local/Cellar/ruby/1.9.2-p290/lib/ruby/gems/1.9.1/gems/rack-1.3.4/lib/rack/handler.rb:63:in
`require': no such file to load -- rack/handler/production (LoadError)
from /usr/local/Cellar/ruby/1.9.2-p290/lib/ruby/gems/1.9.1/gems/rack-1.3.4/lib/rack/handler.rb:63:in `try_require'