New Gems Not Found in Production with Rails 3, Bundler and RVM -


i set production server rails 3 app.

on initial deploy worked fine. on subsequent deploy, new gems added project not being found. getting uninitialized constant , undefined method errors when reference classes , methods newly added gems, respectively.

when set things using gemset rvm, have tried simplify things removing gemset , using rvm manage rubies.

when run bundle list every thing there. of gem in <app_root>/shared/bundle/ruby/1.9.1/gems/

it seems maybe it's loading gems other location, original gemset, have deleted it.

some other details, using capistrano, of course, unicorn, gem_home=/home/deployer/.rvm/gems/ruby-1.9.3-p286

let me know if there other info can provide.

thanks.

if use bundle install --deployment have prefix commands bundle exec when execute command, like:

bundle exec rake db:migrate 

if use bundler/capistrano integration in capistano in console need use bundle exec manually.

rvm helping avoid rubygems-bundler gem - changed gemset generated wrappers no more available. have clean <app_root>/shared/bundle/ruby/1.9.1/gems/ , run bundle install again regenerate wrappers avoid typing bundle exec again.


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -