【问题标题】:Could not find multi_json-1.7.2 in any of the sources在任何来源中都找不到 multi_json-1.7.2
【发布时间】:2013-03-22 19:12:40
【问题描述】:

推送到我的 heroku 暂存环境时出现此错误。

与此相关的其他问题是捆绑更新多 json 或捆绑更新或删除 Gemfile.lock 和捆绑安装(它们都是相同的)。这些解决方案都不适合我。

我的 gemfile 没有调用 multi-json 我尝试指定一个多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

【问题讨论】:

  • 我在这里抓住了稻草,但我首先要尝试的是heroku restart
  • 另一个想法:听起来你可能没有 Heroku 登台服务器。也许您只有本地开发环境,然后是生产环境。我很想知道您是否可以启动 Heroku 登台服务器并成功部署到那里。
  • Gemfile 中的源定义是否有可能不是source 'https://rubygems.org'
  • 我有一个暂存环境,生产中也发生了同样的错误。而且来源和你说的一样 source 'rubygems.org'

标签: ruby-on-rails heroku bundler


【解决方案1】:

诀窍在于,因为存在 vendor/cache,它会在该文件夹中寻找 multi_json。我刚刚删除它并推送它,它正在工作。

这个问题有帮助

What is the purpose of vendor/bundle? Heroku tells me to remove it

【讨论】:

    猜你喜欢
    • 2012-05-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-01-31
    • 2012-03-12
    • 2013-12-25
    • 2017-07-18
    • 2012-07-22
    相关资源
    最近更新 更多