【问题标题】:Trouble on deploying with Bundler and Capistrano使用 Bundler 和 Capistrano 部署时遇到问题
【发布时间】:2011-10-26 16:08:07
【问题描述】:

我正在使用 Ruby on Rails 3.1.0 和 Capistrano gem。正如“使用 Capistrano 进行自动部署”部分的 Bundler official documentation 中所写,我将 require 'bundler/capistrano' 添加到了我的 deploy.rb 文件的顶部。

现在,当我运行 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>

我该如何解决这个问题?

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

【问题讨论】:

  • 我也有同样的问题!你设法解决了吗?

标签: ruby-on-rails ruby ruby-on-rails-3 ruby-on-rails-3.1 capistrano


【解决方案1】:

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

【讨论】:

  • 我做了那个 (bundle install) 并重新部署,但是没有用。
  • 您安装了 libv8 javascript 引擎吗?也许问题是需要 v8 引擎的 gem 找不到库,因此无法正确加载。
  • 如何检查我的远程机器(运行 Ubuntu 10.04)上是否安装了 libv8 javascript 引擎?
猜你喜欢
  • 2011-11-24
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2012-10-14
  • 1970-01-01
相关资源
最近更新 更多