Failed to deploy redmine to HEROKU due to Gemfile.lock nonexistence

匿名 (未验证) 提交于 2019-12-03 01:39:01

问题:

I had this particular error upon pushing/deploying to 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'

I've tried to remove the Gemfile.lock and bundle install again but no luck.

Any workarounds will be appreciated.

回答1:

run bundle install and that will generate your gemfile.lock. Then commit it and deploy to heroku



标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!