1

I'm trying to deploy my project to a server via capistrano but I get below error and the deployment process fails to proceed:

** [out :: myprojet..] Could not find rake-0.8.7 in any of the sources
** [out :: myprojet..] Run `bundle install` to install missing gems.

I'm using rvm, however I removed rake and manually installed it.. also removed my Gemfile.lock and added gem rake, '0.8.7' to my Gemfile; also didn't worked.

I have the rake in my gem list:

$ gem list | grep rake
  rake (0.8.7)

I also added set :rake, 'bundle exec rake' to deploy.rb file but I still get this error. Any idea? tnx.

4

2 回答 2

0

在部署之前,试试这个

  1. 删除所有版本的 Rake ==>gem uninstall rake
  2. 删除你的gemfile.lock=>rm Gemfile.lock
  3. 删除gem 'rake'您的 Gemfile
  4. bundle install
  5. 手动安装 Rake:gem install rake --version=10.0.4
于 2013-06-04T15:48:57.150 回答
0

通过指定rvm Gemsetindeploy.rb文件解决的问题:

set :rvm_ruby_string, "ruby-1.9.2-p180@myproject"
set :rvm_type, :user
于 2013-06-07T15:57:00.493 回答