0

heroku ステージング環境にプッシュすると、このエラーが発生します。

これに関連するその他の質問は、マルチ json の更新をバンドルするか、更新をバンドルするか、Gemfile.lock とバンドルのインストールを削除することです (これらはすべて同じです)。これらの解決策はどれもうまくいきませんでした。

私の gemfile は multi-json を呼び出しません multi-json のバージョンを指定しようとしましたが、heroku にデプロイするときに常に同じ問題が発生しました。私の開発環境は正常に動作します。

また、バンドラーを 1.3.6 に更新し、すべてを再試行しました

-----> Using Ruby version: ruby-1.9.3
-----> Installing dependencies using Bundler version 1.3.2
   Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin --deployment
   fatal: Not a git repository (or any of the parent directories): .git
   fatal: Not a git repository (or any of the parent directories): .git
   fatal: Not a git repository (or any of the parent directories): .git
   Some gems seem to be missing from your vendor/cache directory.
   Could not find multi_json-1.7.2 in any of the sources
 !
 !     Failed to install gems via Bundler.
 !
 !     Heroku push rejected, failed to compile Ruby/rails app
4

1 に答える 1

2

トリックは、ベンダー/キャッシュが存在するため、そのフォルダーで multi_json を探していたことです。削除してプッシュしたところ、機能しています。

この質問は役に立ちました

ベンダー/バンドルの目的は何ですか? Heroku は削除するように指示します

于 2013-03-25T00:19:01.870 に答える