由于Gemfile.lock不存在,无法将redmine部署到HEROKU

时间:2013-08-06 07:20:07

标签: ruby-on-rails heroku

推送/部署到Heroku时出现了这个特殊错误

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 git@heroku.com:xiruki-task.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git@heroku.com:xiruki-task.git'

我试图删除Gemfile.lock并再次捆绑安装,但没有运气。

任何变通办法都将受到赞赏。

1 个答案:

答案 0 :(得分:2)

运行bundle install,这将生成您的gemfile.lock。然后提交它并部署到heroku