ruby on rails - Bundler path problem -
i've taken on ann application deployed server else. there's broken setup, missing environment variable or similar problem stumped. way rails application, running under ree , mod_rails (passenger)
here console logs have me stumped. first, rake db:migrate claims don't have rails 2.3.8
$ rake db:migrate (in /var/www/ems.trustthevote.org/ems/current) missing rails 2.3.8 gem. please `gem install -v=2.3.8 rails`, update rails_gem_version setting in config/environment.rb rails version have installed, or comment out rails_gem_version use latest version installed.
however, bundler says do:
$ bundle list gems included bundle: [...snip] * actionmailer (2.3.8) * actionpack (2.3.8) * activerecord (2.3.8) * activeresource (2.3.8) * activesupport (2.3.8) [...snip...] * rails (2.3.8)
but on other hand, gem says no:
$ gem list rails *** local gems ***
here relevant environment variables:
rubyopt=-rauto_gem rubylib=~/.gem
, finally, here's ruby thinks: $ irb irb(main):001:0> $: => ["~/.gem", "/usr/lib64/rubyee/site_ruby/1.8", "/usr/lib64/rubyee/site_ruby/1.8/x86_64-linux", "/usr/lib64/rubyee/site_ruby", "/usr/lib64/rubyee/vendor_ruby/1.8", "/usr/lib64/rubyee/vendor_ruby/1.8/x86_64-linux", "/usr/lib64/rubyee/vendor_ruby", "/usr/lib64/rubyee/1.8", "/usr/lib64/rubyee/1.8/x86_64 linux", "."] irb(main):002:0>
eyes crossed. missing?
when using custom bundle path, make sure run rake commands within bundler environment.
bundle exec rake db:migrate
try out.
Comments
Post a Comment