我目前正試圖使用在我的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 question和this question類似的問題。
我使用edge-rails
所以我認爲使用bundler 1.3.0.pre.5
可能是本地我使用1.2.3
的問題。在Heroku上強制版本bundler
可能工作?此外,我不知道爲什麼有兩個Fetching gem metadata from https://rubygems.org/..
行...
感謝您的幫助,百萬在這拉我的頭髮。