【问题标题】:Opsworks - How to install gem from GitHub source?Opsworks - 如何从 GitHub 源安装 gem?
【发布时间】:2016-07-15 07:16:29
【问题描述】:

尝试在 Opworks 中创建新实例时,运行设置失败。日志显示尝试从 Github 源安装 gem 时失败,我尝试了几个选项:

gem 'themes_on_rails', git: 'git@github.com:yoolk/themes_on_rails.git', branch: 'master'
gem 'themes_on_rails', git: 'https://github.com/yoolk/themes_on_rails.git', branch: 'master'
gem 'themes_on_rails', github: 'yoolk/themes_on_rails', branch: 'master'

但是日志总是显示同样的错误:

SystemStackError: stack level too deep
An error occurred while installing themes_on_rails (0.3.1), and Bundler cannot
continue.

我需要如何在我的 Gemfile 中指定 gem 才能让它在 Opsworks 中工作?

PD:我从 Github 指定的所有 gem 都会发生这种情况,而不仅仅是提供的示例。

【问题讨论】:

  • 我尝试使用gem 'themes_on_rails', git: 'https://github.com/yoolk/themes_on_rails.git', branch: 'master' ,它工作正常。你能在本地和实例内部成功运行 bundle install 吗?
  • 我也有这个问题@darkcode。有什么想法吗?

标签: ruby-on-rails rubygems bundle aws-opsworks


【解决方案1】:

确保您的 Bundler 版本是最新的。这可以在图层设置中更改。

【讨论】:

    猜你喜欢
    • 2011-02-04
    • 1970-01-01
    • 2015-01-31
    • 1970-01-01
    • 1970-01-01
    • 2011-02-18
    • 1970-01-01
    • 2011-04-20
    • 1970-01-01
    相关资源
    最近更新 更多