简体   繁体   English

与Bundler和Capistrano一起部署时遇到问题

[英]Trouble on deploying with Bundler and Capistrano

I am using Ruby on Rails 3.1.0 and the Capistrano gem. 我正在使用Ruby on Rails 3.1.0和Capistrano gem。 As wrote in the Bundler official documentation in the "Automatic deployment with Capistrano" section, I added the require 'bundler/capistrano' to the top of my deploy.rb file. 正如Bundler官方文档中“使用Capistrano进行自动部署”部分中所写,我将require 'bundler/capistrano'到了deploy.rb文件的顶部。

Now, when I run the cap deploy:migrations command (Deploy and run pending migrations) I get the following error: 现在,当我运行cap deploy:migrations命令(部署并运行挂起的迁移)时,出现以下错误:

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

How can I solve the problem? 我该如何解决这个问题?

Note : This is a specific question of a related problem I started to have after this question . 注意 :这是我在这个问题之后开始遇到的一个相关问题的具体问题

Sounds like your local Gemlock file may be out of sync with your remote gemset. 听起来您的本地Gemlock文件可能与您的远程gemset不同步。 If you've recently added gems, make sure you run bundle install on your local fileset to update the Gemlock file, then check in those changes (if any). 如果您最近添加了gem,请确保在本地文件集上运行bundle install以更新Gemlock文件,然后签入那些更改(如果有)。 Re-run the deployment. 重新运行部署。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM