Note that there are some explanatory texts on larger screens.

plurals
  1. POCould not find capistrano-2.11.0 in any of the sources
    text
    copied!<p>I'm trying to use capistrano to handle deployment of my Rails 3.2.1 app.</p> <p>I'm getting this error when I run <code>cap deploy:update</code></p> <pre><code>Could not find capistrano-2.11.0 in any of the sources </code></pre> <p>I was having issues with capistrano-2.11.0, so I downgraded to 2.9.0.</p> <p>Gemfile:</p> <pre><code>source 'https://rubygems.org' gem 'rails', '3.2.1' # Bundle edge Rails instead: # gem 'rails', :git =&gt; 'git://github.com/rails/rails.git' gem 'sqlite3' gem 'capistrano', '2.9.0' # Gems used only for assets and not required # in production environments by default. group :assets do gem 'sass-rails', '~&gt; 3.2.3' gem 'coffee-rails', '~&gt; 3.2.1' # See https://github.com/sstephenson/execjs#readme for more supported runtimes # gem 'therubyracer' gem 'uglifier', '&gt;= 1.0.3' end gem 'jquery-rails' </code></pre> <p><code>bundle show capistrano</code>:</p> <pre><code> /Users/Tyler/.rvm/gems/ruby-1.9.2-p290/gems/capistrano-2.9.0 </code></pre> <p>Why is it looking for capistrano-2.11.0?</p> <p>Capfile:</p> <pre><code>load 'deploy' if respond_to?(:namespace) # cap2 differentiator #require 'deploy' # Uncomment if you are using Rails' asset pipeline load 'deploy/assets' Dir['vendor/gems/*/recipes/*.rb','vendor/plugins/*/recipes/*.rb'].each { |plugin| load(plugin) } load 'config/deploy' # remove this line to skip loading any of the default tasks </code></pre> <p>config/deploy.rb</p> <pre><code>require 'bundler/capistrano' set :application, "CapistranoApp" set :repository, "ssh://ubuntu@ror.weaponxo.com/home/ubuntu/projectdir.git" set :applicationdir, "/var/www/#{application}" set :domain, "ror.weaponxo.com" set :use_sudo, false set :user, "ubuntu" #set :default_environment, {'PATH' =&gt; "/home/ubuntu/.rvm/rubies/ruby-1.9.2-p290/bin/:$PATH"} set :scm, :git set :branch, "master" set :git_shallow_clone, 1 set :scm_verbose, true # Or: `accurev`, `bzr`, `cvs`, `darcs`, `git`, `mercurial`, `perforce`, `subversion` or `none` role :web, domain # Your HTTP server, Apache/etc role :app, domain # This may be the same as your `Web` server role :db, domain, :primary =&gt; true # This is where Rails migrations will run set :deploy_to, applicationdir set :deploy_via, :remote_cache $:.unshift(File.expand_path('./lib', ENV['rvm_path'])) # Add RVM's lib directory to the load path. require "rvm/capistrano" # Load RVM's capistrano plugin. set :rvm_ruby_string, 'ruby-1.9.2-p290' # Or whatever env you want it to run in. set :rvm_type, :user # Copy the exact line. I really mean :user here # if you're still using the script/reaper helper you will need # these http://github.com/rails/irs_process_scripts # If you are using Passenger mod_rails uncomment this: namespace :deploy do task :start do ; end task :stop do ; end task :restart, :roles =&gt; :app, :except =&gt; { :no_release =&gt; true } do run "#{try_sudo} touch #{File.join(current_path,'tmp','restart.txt')}" end end </code></pre> <p>I did run <code>gem install capistrano</code> initially, so is that version (2.11.0) tucked away somewhere?</p> <p>Thanks</p> <h2>Edit</h2> <p>Note, capistrano-2.9.0 is the only version installed, I previously ran <code>bundle uninstall capistrano</code> and removed 2.11.0.</p> <p>I ran <code>bundle exec cap deploy:update</code> and still get the same error.</p> <h2>Edit 2</h2> <p>I recommitted my Gemfile.lock file to the repo. It reads capistrano 2.9.0.</p> <h2>Edit 3</h2> <p>Running <code>cap deploy:cold</code> worked. </p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload