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部署,这些部署需要相同的一组私有宝石。 –