我在推送到heroku登台环境时收到此错误。
其他相关问题是捆绑更新multi-json或捆绑更新或删除Gemfile.lock和bundle install(都是一样的)。这些解决方案都不适合我。
我的gemfile不会调用multi-json 我尝试指定multi-json的一个版本,但在部署到heroku时总是遇到同样的问题。我的开发环境运行良好。
我还将bundler更新到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
答案 0 :(得分:1)
诀窍是因为供应商/缓存存在,它正在该文件夹中寻找multi_json。我刚刚将其删除并推送它正在运行。
这个问题有帮助
What is the purpose of vendor/bundle? Heroku tells me to remove it