もともとBambooにあったアプリがあります。私はそれをruby1.9に更新し、すべての依存関係を取り除きました。そして、Herokuにデプロイしようとしていますが、失敗します。
-----> 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 git@github.com:WaterfallFMS/deployment.git
Host key verification failed.
fatal: The remote end hung up unexpectedly
Git error: command `git clone 'git@github.com: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リポジトリをキャッシュしていないbundler(https://github.com/carlhuda/bundler/issues/67)まで追跡しました。「bundlepackage--all」フラグを使用すると修正されました。
問題は、「Bundle install --local」を使用する必要があることです。そうしないと、キャッシュの前にgitリポジトリが参照されます。herokuに「--local」を強制的に使用させる方法がわかりません。