ruby on rails - Unicorn cannot find gem on production -


i installed new gem on rails application. works fine on dev machine.

once deploy application production server, uninitialized constant in unicorn.log , application won't run.

i can run application rails s server, files 100% there. i'm assuming unicorn problem.

any ideas on how debug this?

edit: added stacktrace

e, [2013-05-19t09:11:56.596020 #14042] error -- : uninitialized constant rabl (nameerror) /home/deployer/apps/papaya/releases/20130519131101/config/initializers/rabl_init.rb:1:in `<top (required)>' /home/deployer/apps/papaya/shared/bundle/ruby/1.9.1/gems/railties-3.2.11/lib/rails/engine.rb:588:in `block (2 levels) in <class:engine>' /home/deployer/apps/papaya/shared/bundle/ruby/1.9.1/gems/railties-3.2.11/lib/rails/engine.rb:587:in `each' /home/deployer/apps/papaya/shared/bundle/ruby/1.9.1/gems/railties-3.2.11/lib/rails/engine.rb:587:in `block in <class:engine>' /home/deployer/apps/papaya/shared/bundle/ruby/1.9.1/gems/railties-3.2.11/lib/rails/initializable.rb:30:in `instance_exec' /home/deployer/apps/papaya/shared/bundle/ruby/1.9.1/gems/railties-3.2.11/lib/rails/initializable.rb:30:in `run' /home/deployer/apps/papaya/shared/bundle/ruby/1.9.1/gems/railties-3.2.11/lib/rails/initializable.rb:55:in `block in run_initializers' /home/deployer/apps/papaya/shared/bundle/ruby/1.9.1/gems/railties-3.2.11/lib/rails/initializable.rb:54:in `each' /home/deployer/apps/papaya/shared/bundle/ruby/1.9.1/gems/railties-3.2.11/lib/rails/initializable.rb:54:in `run_initializers' /home/deployer/apps/papaya/shared/bundle/ruby/1.9.1/gems/railties-3.2.11/lib/rails/application.rb:136:in `initialize!' /home/deployer/apps/papaya/shared/bundle/ruby/1.9.1/gems/railties-3.2.11/lib/rails/railtie/configurable.rb:30:in `method_missing' /home/deployer/apps/papaya/releases/20130519131101/config/environment.rb:5:in `<top (required)>' config.ru:4:in `require' config.ru:4:in `block in <main>' /home/deployer/apps/papaya/shared/bundle/ruby/1.9.1/gems/rack-1.4.4/lib/rack/builder.rb:51:in `instance_eval' /home/deployer/apps/papaya/shared/bundle/ruby/1.9.1/gems/rack-1.4.4/lib/rack/builder.rb:51:in `initialize' config.ru:1:in `new' config.ru:1:in `<main>' /home/deployer/apps/papaya/shared/bundle/ruby/1.9.1/gems/unicorn-4.5.0/lib/unicorn.rb:44:in `eval' /home/deployer/apps/papaya/shared/bundle/ruby/1.9.1/gems/unicorn-4.5.0/lib/unicorn.rb:44:in `block in builder' /home/deployer/apps/papaya/shared/bundle/ruby/1.9.1/gems/unicorn-4.5.0/lib/unicorn/http_server.rb:718:in `call' /home/deployer/apps/papaya/shared/bundle/ruby/1.9.1/gems/unicorn-4.5.0/lib/unicorn/http_server.rb:718:in `build_app!' /home/deployer/apps/papaya/shared/bundle/ruby/1.9.1/gems/unicorn-4.5.0/lib/unicorn/http_server.rb:591:in `init_worker_process' /home/deployer/apps/papaya/shared/bundle/ruby/1.9.1/gems/unicorn-4.5.0/lib/unicorn/http_server.rb:611:in `worker_loop' /home/deployer/apps/papaya/shared/bundle/ruby/1.9.1/gems/unicorn-4.5.0/lib/unicorn/http_server.rb:500:in `spawn_missing_workers' /home/deployer/apps/papaya/shared/bundle/ruby/1.9.1/gems/unicorn-4.5.0/lib/unicorn/http_server.rb:511:in `maintain_worker_count' /home/deployer/apps/papaya/shared/bundle/ruby/1.9.1/gems/unicorn-4.5.0/lib/unicorn/http_server.rb:277:in `join' /home/deployer/apps/papaya/shared/bundle/ruby/1.9.1/gems/unicorn-4.5.0/bin/unicorn:121:in `<top (required)>' /home/deployer/apps/papaya/shared/bundle/ruby/1.9.1/bin/unicorn:23:in `load' /home/deployer/apps/papaya/shared/bundle/ruby/1.9.1/bin/unicorn:23:in `<main>' 

did add gem in gemfile. also, need bundle install after making changes gemfile


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -