【发布时间】: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