0
我有一個最初是在Bamboo上的應用程序。我已經將它更新爲Ruby 1.9並且擺脫了所有的依賴。我試圖在Heroku上部署,但失敗了。在Heroku Cedar上使用「bundle install --local」
-----> Heroku receiving push
-----> Ruby/Rails app detected
-----> Installing dependencies using Bundler version 1.2.1
Running: bundle install --without development:test --path vendor/bundle --binstubs bin/
Fetching [email protected]:WaterfallFMS/deployment.git
Host key verification failed.
fatal: The remote end hung up unexpectedly
Git error: command `git clone '[email protected]:WaterfallFMS/deployment.git' "/tmp/build_2q1m86r0nc31g/vendor/bundle/ruby/1.9.1/cache/bundler/git/deployment-5959a7fb9f44c5cab5d6966441639b4e711bfc6b" --bare --no-hardlinks` in directory /tmp/build_2q1m86r0nc31g has failed.
我跟蹤下來到打捆不緩存git的回購協議(https://github.com/carlhuda/bundler/issues/67)。如果您使用「捆綁軟件包 - 全部」標誌,它是固定的。
問題是你必須使用「Bundle install --local」,否則它將在緩存之前引用git repo。我無法弄清楚如何強制heroku使用「--local」。
這種踢我自己甚至沒有考慮使用私人寶石服務器。我可能最終會使用Gemfury作爲一項全面的服務,因爲我實際上需要10+個heroku部署,這些部署需要相同的一組私有寶石。 –