2016-03-28 100 views
1

嘗試在Opworks中創建新實例時,運行設置失敗。日誌顯示,當安裝嘗試從Github上源的寶石失敗,我已經嘗試了幾種選擇:Opsworks - 如何從GitHub源安裝gem?

gem 'themes_on_rails', git: '[email protected]: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指定的所有寶石上,而不僅僅是所提供的例子。

+0

我試着用'gem'themes_on_rails',git:'https://github.com/yoolk/themes_on_rails.git',分支:'master' ',它工作正常。你能否在本地和實例內成功運行bundle install? –

+0

我也有這個問題@darkcode。有任何想法嗎? – Sean

回答

0

確保您的Bundler版本是最新版本。這可以在圖層設置中更改。