我有以下问题:的Heroku:Gemfile.lock的需要问题
我想在Heroku上部署我的项目,但我跑得
git push heroku master
后,我得到如下:
git push heroku master -f
Counting objects: 524, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (498/498), done.
Writing objects: 100% (524/524), 157.76 KiB, done.
Total 524 (delta 207), reused 62 (delta 2)
-----> Heroku receiving push
-----> Ruby/Rails app detected
!
! Gemfile.lock is required. Please run "bundle install" locally
! and commit your Gemfile.lock.
!
! Heroku push rejected, failed to compile Ruby/rails app
To [email protected]:*****.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to '[email protected]:*****.git'
我已经运行了bundle install
和bundle update
好几次了,我试着从版本库和我的文件系统中删除Gemfile.lock
。但我仍然收到同样的信息。谁能告诉我我做错了什么?
我试图推动的分支是从主复制的。
我已经做了好几次了,但还是得到了同样的问题 – RomanKapitonov 2012-03-08 22:52:26
好吧,首先从Heroku和github中删除Gemfile.lock,然后放置一个新的,你能来聊天吗? - http://chat.stackoverflow.com/我们可以聊天 – 2012-03-08 22:56:09