推送到我的 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