By deploying a very simple Rails 3.2.3 test site to a "production" server (actually not in production, fortunately!) With RVM Ruby 1.9.3-p194, I believe the following: here:
ββββββββββββββββββββββββββββββββββββββββ€ββββ β command issued βOK?β ββββββββββββββββββββββββββββββββββββββββΌββββ’ β bundle exec rails console β N β β bundle exec rails console production β Y β β bundle exec rails server β Y β β bundle exec rails server production β N β ββββββββββββββββββββββββββββββββββββββββ§ββββ
My first question is: was this expected? (I would think that the template in the right column should be NYNY.)
Additional information: bundle exec rails console not suitable for the obvious reason that the sqlite3 stone is not installed on the server. However, bundle exec rails server production fails with much less clear tracing:
$ bundle exec rails server production Exiting /home/spkspike/www/spike.sampablokuper.com/releases/20120530134819/vendor/ruby/1.9.1/gems/rack-1.4.1/lib/rack/handler.rb:63:in `require': cannot load such file -- rack/handler/production (LoadError) from /home/spkspike/www/spike.sampablokuper.com/releases/20120530134819/vendor/ruby/1.9.1/gems/rack-1.4.1/lib/rack/handler.rb:63:in `try_require' from /home/spkspike/www/spike.sampablokuper.com/releases/20120530134819/vendor/ruby/1.9.1/gems/rack-1.4.1/lib/rack/handler.rb:16:in `get' from /home/spkspike/www/spike.sampablokuper.com/releases/20120530134819/vendor/ruby/1.9.1/gems/rack-1.4.1/lib/rack/server.rb:269:in `server' from /home/spkspike/www/spike.sampablokuper.com/releases/20120530134819/vendor/ruby/1.9.1/gems/railties-3.2.3/lib/rails/commands/server.rb:59:in `start' from /home/spkspike/www/spike.sampablokuper.com/releases/20120530134819/vendor/ruby/1.9.1/gems/railties-3.2.3/lib/rails/commands.rb:55:in `block in <top (required)>' from /home/spkspike/www/spike.sampablokuper.com/releases/20120530134819/vendor/ruby/1.9.1/gems/railties-3.2.3/lib/rails/commands.rb:50:in `tap' from /home/spkspike/www/spike.sampablokuper.com/releases/20120530134819/vendor/ruby/1.9.1/gems/railties-3.2.3/lib/rails/commands.rb:50:in `<top (required)>' from script/rails:6:in `require' from script/rails:6:in `<main>'
My second question is: what is the best way to fix this error?
sampablokuper
source share