使用Bundler和Capistrano进行部署时出现问题

我正在使用Ruby on Rails 3.1.0和Capistrano gem。 正如Bundler官方文档中的“使用Capistrano自动部署”部分所述,我在deploy.rb文件的顶部添加了deploy.rb require 'bundler/capistrano'

现在,当我运行cap deploy:migrations命令(部署并运行挂起的迁移)时,我收到以下错误:

 ... * executing "cd //releases/20111026132212 && bundle install --gemfile //releases/20111026132212/Gemfile --path //shared/bundle --deployment --quiet --without development test" servers: [""] [] executing command ** [out :: ] Some gems seem to be missing from your vendor/cache directory. ** [out :: ] Could not find libv8-3.3.10.2 in any of the sources command finished in 2554ms failed: "sh -c 'cd //releases/20111026132212 && bundle install --gemfile //releases/20111026132212/Gemfile --path //shared/bundle --deployment --quiet --without development test'" on  

我该如何解决这个问题?

注意 :这是我在此问题之后开始遇到的相关问题的具体问题 。

听起来您的本地Gemlock文件可能与您的远程gemset不同步。 如果您最近添加了gem,请确保在本地文件集上运行bundle install以更新Gemlock文件,然后检入这些更改(如果有)。 重新运行部署。