首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Gemfile.lock未签入- Heroku

Gemfile.lock未签入- Heroku
EN

Stack Overflow用户
提问于 2010-11-24 00:29:29
回答 6查看 11.8K关注 0票数 22

当我尝试"git推送heroku master“时,我一直收到错误:

代码语言:javascript
复制
Counting objects: 266, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (239/239), done.
Writing objects: 100% (266/266), 222.68 KiB, done.
Total 266 (delta 55), reused 0 (delta 0)

-----> Heroku receiving push
-----> Rails app detected
-----> Detected Rails is not set to serve static_assets
       Installing rails3_serve_static_assets... done
-----> Gemfile detected, running Bundler version 1.0.3
       Unresolved dependencies detected; Installing...
       Using --without development:test
       You have modified your Gemfile in development but did not check
       the resulting snapshot (Gemfile.lock) into version control

       You have deleted from the Gemfile:
       * version: 1.0.6
       FAILED: http://docs.heroku.com/bundler
 !     Heroku push rejected, failed to install gems via Bundler

error: hooks/pre-receive exited with error code 1
To git@heroku.com:freezing-frost-65.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git@heroku.com:freezing-frost-65.git'

我尝试将Gemfile和Gemfile.lock添加到git中,但没有效果。我尝试删除.bundle目录和Gemfile.lock,但同样的错误。

EN

回答 6

Stack Overflow用户

回答已采纳

发布于 2010-11-25 00:07:03

在- http://www.unityisplural.com/2010/11/hobo-finally.html上找到答案

票数 5
EN

Stack Overflow用户

发布于 2010-11-29 17:24:12

bundler版本1.0.6有一个问题,你需要在你的开发机器上运行"gem update bundler“来更新bundler到1.0.7。然后你需要在你的应用中运行包更新来生成一个新的Gemfile.lock文件。您将看到Gemfile.lock已更新。提交这个新的Gemfile.lock并再次推送到heroku。

票数 15
EN

Stack Overflow用户

发布于 2011-07-25 10:04:49

我通过打开Gemfile.lock并删除以下两行修复了我的问题:

代码语言:javascript
复制
PLATFORMS
  x86-mingw32

因此,现在我只需要创建一个脚本,该脚本捆绑在一起,然后从锁文件中删除它。

票数 8
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/4258327

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档