【问题标题】:passenger error "Could not find activesupport-3.2.1 in any of the sources"乘客错误“在任何来源中都找不到 activesupport-3.2.1”
【发布时间】:2012-07-28 22:41:46
【问题描述】:

我刚刚设法通过 capistrano 将我的 rails 应用程序文件上传到我的 ec2 实例中,但现在我在尝试访问网页时遇到了一些错误:

Ruby (Rack) 应用程序无法启动

Error message:
    Could not find activesupport-3.2.1 in any of the sources (Bundler::GemNotFound)
Exception class:
    PhusionPassenger::UnknownError

我安装了activesupport并将其重新部署到服务器中...问题仍然存在...有什么想法吗?

【问题讨论】:

  • 尝试将它添加到 gemfile 并在服务器上捆绑安装,也许它会工作
  • 已经在客户端做了,你的意思是在服务器上?
  • 是的,在 SERVER 上进行捆绑安装或捆绑更新
  • 我做到了,它似乎工作......我想当你做上限部署时应该有一个选项来做这个......无论如何,现在我必须找出如何上传数据库通过上限生产

标签: ruby-on-rails amazon-ec2 capistrano activesupport


【解决方案1】:

您是否将 gem 添加到 Gemfile 中?

您是否检查了 Gemfile.lock 到您的存储库?

您是否告诉您的 capfile 执行 bundle install --deploymentbundle install

【讨论】:

  • 我所做的是,我从客户端机器上下载了 gem,将其添加到 gemfile 中,然后通过 capistrano 将其上传到 ec2 服务器...除了我错过的其他任何东西吗?跨度>
  • 通常情况下,bundle install 应该注意 gems 的依赖。在我的服务器上:rm Gemfile.lock > /dev/null;捆绑安装 --no-deployment > /dev/null;捆绑安装 --deployment > /dev/null;捆绑安装 > /dev/null;
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2012-03-30
  • 1970-01-01
  • 1970-01-01
  • 2011-12-31
  • 2011-12-11
  • 2015-02-25
  • 2019-07-03
相关资源
最近更新 更多