Gemfile.lock未签入 - Heroku [英] Gemfile.lock not checked in - Heroku

查看:94
本文介绍了Gemfile.lock未签入 - Heroku的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 计数对象:266,完成。尝试git push heroku master时,我一直收到错误信息: 
使用多达4个线程的增量压缩。
压缩对象:100%(239/239),完成。
写作对象:100%(266/266),222.68 KiB,完成。
总计266(增量55),重用0(增量0)

-----> Heroku接收推送
-----> Rails应用程序检测到
----->检测到的Rails没有设置为static_assets
安装rails3_serve_static_assets ... done
----->检测到Gemfile,运行Bundler版本1.0.3
未检测到依赖关系;正在安装...
使用 - 无需开发:测试
您在开发中修改了Gemfile,但没有将生成的快照(Gemfile.lock)
检入版本控制

您已从Gemfile中删除:
*版本:1.0.6
失败:http://docs.heroku.com/bundler
! Heroku推送被拒绝,未能通过Bundler安装宝石

错误:钩子/预接收退出,错误代码为1
至git@heroku.com:freeze-frost-65.git
! [remote rejected] master - > master(pre-receive hook refused)
错误:未能推送一些文件到'git@heroku.com:freeze-frost-65.git'

我试着将Gemfile和Gemfile.lock添加到git中,但无济于事。我尝试删除.bundle目录和Gemfile.lock,但是出现同样的错误。

解决方案

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


While trying to "git push heroku master", I keep getting the error :

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'

I tried adding Gemfile and Gemfile.lock to git but to no avail. I tried removing .bundle directory and Gemfile.lock but the same error.

解决方案

Found the answer at - http://www.unityisplural.com/2010/11/hobo-finally.html

这篇关于Gemfile.lock未签入 - Heroku的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆