不同环境下的引导轨3.1
尝试在生产模式下本地启动 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'
Trying to boot a Rails 3.1 app locally in production mode.
rails s
will boot into development just fine. When I try
rails s production
I get the error:
/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'
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
显然,正确的命令是
“如果我错了,请纠正我”,但我相信以前不需要“-e”。
Apparently the correct command is
Correct me if I'm wrong, but I believe the "-e" wasn't previously required.