当我尝试"git推送heroku master“时,我一直收到错误:
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,但同样的错误。
发布于 2010-11-25 00:07:03
在- http://www.unityisplural.com/2010/11/hobo-finally.html上找到答案
发布于 2010-11-29 17:24:12
bundler版本1.0.6有一个问题,你需要在你的开发机器上运行"gem update bundler“来更新bundler到1.0.7。然后你需要在你的应用中运行包更新来生成一个新的Gemfile.lock文件。您将看到Gemfile.lock已更新。提交这个新的Gemfile.lock并再次推送到heroku。
发布于 2011-07-25 10:04:49
我通过打开Gemfile.lock并删除以下两行修复了我的问题:
PLATFORMS
x86-mingw32因此,现在我只需要创建一个脚本,该脚本捆绑在一起,然后从锁文件中删除它。
https://stackoverflow.com/questions/4258327
复制相似问题