Capistrano deploy:migrate Could not find rake-0.9.2.2 in any of the sources

Posted by Kyle on Stack Overflow See other posts from Stack Overflow or by Kyle
Published on 2012-10-03T14:16:17Z Indexed on 2012/10/03 15:37 UTC
Read the original article Hit count: 164

My Capistrano deploy:migrate task is set to run a simple rake db:migrate command, as follows:

env PATH=/home/user/.gems/bin sh -c 'cd /home/user/app/releases/20121003140503 && rake RAILS_ENV=production  db:migrate'

When I run this task during an ssh session manually it completes successfully. However when I run from my local development box, I receive the following error:

** [out :: app] Could not find rake-0.9.2.2 in any of the sources

I am able to locate my rake gem by typing which rake via ssh (/home/user/.gems/bin/rake) and rake --version gives me "rake, version 0.9.2.2," so I don't understand why this command fails via Capistrano?

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about capistrano