2013-02-10 32 views
2

我目前正試圖使用​​在我的Heroku應用程序GitHub上託管的自定義/私人寶石,但是每當我嘗試推向Heroku時,它掛起時,它是綁定寶石。超時Heroku推自定義/私人寶石

要獲得私人寶石工作,我一直在使用this method並創建了一個用於訪問存儲庫的令牌。

所有作品在本地都非常好,我的bundle命令很有魅力,但是當我推到Heroku時,它會在獲取自定義寶石時掛起。下面是輸出(審查對敏感信息):

Counting objects: 26, done. 
Delta compression using up to 2 threads. 
Compressing objects: 100% (19/19), done. 
Writing objects: 100% (19/19), 2.49 KiB, done. 
Total 19 (delta 13), reused 0 (delta 0) 
-----> Ruby/Rails app detected 
-----> Using Ruby version: ruby-1.9.3 
-----> Installing dependencies using Bundler version 1.3.0.pre.5 
     Running: bundle install --without development:test --path vendor/bundle --binstubs  vendor/bundle/bin --deployment 
     Fetching gem metadata from https://rubygems.org/....... 
     Fetching gem metadata from https://rubygems.org/.. 
     Updating git://github.com/rails/rails.git 
     Fetching https://<token>@github.com/<username>/<repo>.git 

     <hangs here with Heroku timeout error> 

看來我有,但是我曾經嘗試都提出了這些問題無濟於事的解決方案,以this questionthis question類似的問題。

我使用edge-rails所以我認爲使用bundler 1.3.0.pre.5可能是本地我使用1.2.3的問題。在Heroku上強制版本bundler可能工作?此外,我不知道爲什麼有兩個Fetching gem metadata from https://rubygems.org/..行...

感謝您的幫助,百萬在這拉我的頭髮。

回答

3

所以問題結果是Heroku使用的版本git不支持使用令牌!一旦我在我的Gemfile中包含用戶名/密碼(不滿意,但我已經建立了一個特殊的合作者帳戶,所以安全風險有所縮小......),它完美的工作!

特別感謝this question,我發現那幫了我:)