与Bundler和Capistrano一起部署时遇到问题 [英] Trouble on deploying with Bundler and Capistrano

查看:56
本文介绍了与Bundler和Capistrano一起部署时遇到问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I am using Ruby on Rails 3.1.0 and the 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.

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

Now, when I run the cap deploy:migrations command (Deploy and run pending migrations) I get the following error:

...
* 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>

如何解决此问题?

注意:这是我在这个问题

推荐答案

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

Sounds like your local Gemlock file may be out of sync with your remote 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). Re-run the deployment.

这篇关于与Bundler和Capistrano一起部署时遇到问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆