3
我不得不推後此特定錯誤/部署到Heroku的未能部署管理平臺來的Heroku由於Gemfile.lock的不存在
Counting objects: 92259, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (19977/19977), done.
Writing objects: 48% (45054/92259), 13.63 MiB | 103 KiB/s
Writing objects: 100% (92259/92259), 23.82 MiB | 87 KiB/s, done.
Total 92259 (delta 72165), reused 90569 (delta 70774)
-----> Ruby/NoLockfile app detected
!
! Gemfile.lock required. Please check it in.
!
! Push rejected, failed to compile Ruby/NoLockfile app
To [email protected]:xiruki-task.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to '[email protected]:xiruki-task.git'
我試圖刪除Gemfile.lock的和捆綁重新安裝,但沒有運氣。
任何解決方法將不勝感激。
是您的git repo中的Gemfile.lock? – j03w
沒有git回購。我直接將它推向Heroku。這不正確嗎? – xirukitepe
好吧...看看:https://devcenter.heroku.com/articles/git和https://devcenter.heroku.com/articles/rails3 總之,是的,你需要git,因爲這是你部署你的代碼給Heroku。無論檢查到你的git repo,它都會被推送到Heroku服務器。 另外,我並不是指像Github這樣的遠程回購,而是我認爲你應該已經擁有的本地回購,否則你將無法在第一時間推送到heroku。 – j03w