saravanan p
2014-Jan-21 06:33 UTC
capistrano deploy issue: "rails (= 4.0.0) depends on bundler (< 2.0, >= 1.3.0)"
Hi all, I am trying to push rails 4 app into my server using capistrano. i am getting following error while 'cap deploy', * executing "cd -- projects/testproject/releases/20140121061131 && RAILS_ENV=production RAILS_GROUPS=assets rake assets:precompile" servers: ["xxxxxxx"] [xxxxxxx] executing command *** [err :: xxxxxxx] rake aborted! *** [err :: xxxxxxx] *** [err :: xxxxxxx] Bundler could not find compatible versions for gem "bundler": *** [err :: xxxxxxx] In Gemfile: *** [err :: xxxxxxx] rails (= 4.0.0) depends on *** [err :: xxxxxxx] bundler (< 2.0, >= 1.3.0) *** [err :: xxxxxxx] *** [err :: xxxxxxx] Current Bundler version: *** [err :: xxxxxxx] bundler (1.0.15) *** [err :: xxxxxxx] *** [err :: xxxxxxx] (See full trace by running task with --trace) *** [err :: xxxxxxx] command finished in 541ms *** [deploy:update_code] rolling back but in both local and server i have bundler version 1.5.0 Can anyone help me? My deploy.rb file: require 'capistrano/ext/multistage' #require 'bundler/capistrano' set :stages, ["development", "production"] set :default_stage, "development" set :application, "testproject" set :scm, "git" set :repository, "path_to_my_project_repo_xxxxxx" set(:deploy_to) { "/home/xxxx/projects/#{application}" } set :user, "username" set :password, "password" set :deploy_via, :copy set :branch, "master" set :keep_releases, 5 set :use_sudo, false # Or: `accurev`, `bzr`, `cvs`, `darcs`, `git`, `mercurial`, `perforce`, `subversion` or `none` role :web, "xxxxxxxxx" # Your HTTP server, Apache/etc role :app, "xxxxxxxxx" # This may be the same as your `Web` server role :db, "xxxxxxxxx", :primary => true # This is where Rails migrations will run after "deploy", "deploy:symlink_config_files" namespace :deploy do desc "Symlink shared config files" task :symlink_config_files, :roles => [:app] do run "ln -nfs #{deploy_to}/#{shared_dir}/config/database.yml #{release_path}/config/database.yml" run "if [ -d #{release_path}/tmp ]; then rm -rf #{release_path}/tmp; fi; ln -nfs #{deploy_to}/#{shared_dir}/tmp #{release_path}/tmp" end end My Gemfile: source 'https://rubygems.org' gem 'rails', '4.0.0' gem 'mysql2' gem 'magic_multi_connections' gem 'execjs' gem 'therubyracer', :platforms => :ruby gem 'sass-rails', '~> 4.0.0' gem 'uglifier', '>= 1.3.0' #gem 'capistrano', '~> 2.15' group :development do gem 'capistrano', '~> 2.15' end gem 'coffee-rails', '~> 4.0.0' gem 'jquery-rails' gem 'turbolinks' gem 'jbuilder', '~> 1.2' group :doc do gem 'sdoc'#, require: false end gem 'bcrypt-ruby', '~> 3.0.0' Regards Saravanan P -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/bec152cc-c552-4034-b068-76c273033d71%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.