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'
Apparently the correct command is
rails s -e production
Correct me if I'm wrong, but I believe the "-e" wasn't previously required.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With