我有以下問題:的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