引导轨道3.1在不同的环境中

tyb*_*103 25 environment ruby-on-rails production-environment ruby-on-rails-3

尝试在生产模式下本地启动Rails 3.1应用程序.

rails s
Run Code Online (Sandbox Code Playgroud)

将启动进入开发就好了.当我尝试

rails s production
Run Code Online (Sandbox Code Playgroud)

我收到错误:

/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'
Run Code Online (Sandbox Code Playgroud)

tyb*_*103 69

显然正确的命令是

rails s -e production
Run Code Online (Sandbox Code Playgroud)

如果我错了,请纠正我,但我相信以前不需要"-e".