ruby on rails - How to define the correct Bundler version? (Capistrano deployment problem) -
i'm trying deploy rails application capistrano. don't errors when cap deploy when open browser see: "your gemfile.lock generated bundler 0.10. must delete if wish use bundler 0.9. (bundler::gemfileerror)"
i installed bundler on both machines, local machine , production box. assume latter uses system wide gem of different version. how define version right one?
some background:
apache/passenger, rails 3.0.3, capistrano 2.6.0, bundler 1.0.15. binary of manually installed gem found in /var/www/htdocs/web18/.gems/bin/bundle. added following lines config/deploy.rb:
set :default_environment, { 'gem_home' => '/var/www/htdocs/web18/.gems', 'gem_path' => '/var/www/htdocs/web18/.gems', 'bundle_path' => '/var/www/htdocs/web18/.gems' } set :bundle_cmd, '/var/www/htdocs/web18/.gems/bin/bundle' after deployment see gems in /var/www/htdocs/web18/.gems/gems/
any appreciated
consider deleting gemfile.lock , running bundle again see if works. also, should try use rvm being able setup gemsets life saver @ times these.
if above doesn't work gem list , uninstall older version of bundler if find more 1 on system.
Comments
Post a Comment