2013-08-06 36 views
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的和捆绑重新安装,但没有运气。

任何解决方法将不胜感激。

+1

是您的git repo中的Gemfile.lock? – j03w

+0

没有git回购。我直接将它推向Heroku。这不正确吗? – xirukitepe

+1

好吧...看看:https://devcenter.heroku.com/articles/git和https://devcenter.heroku.com/articles/rails3 总之,是的,你需要git,因为这是你部署你的代码给Heroku。无论检查到你的git repo,它都会被推送到Heroku服务器。 另外,我并不是指像Github这样的远程回购,而是我认为你应该已经拥有的本地回购,否则你将无法在第一时间推送到heroku。 – j03w

回答

2

运行bundle install并且会生成你的gemfile.lock。然后提交并部署到heroku

+0

我已经有Gemfile.lock。似乎我真的忘了在github中推它 – xirukitepe