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 firstname.lastname@example.org:xiruki-task.git ! [remote rejected] master -> master (pre-receive hook declined) error: failed to push some refs to 'email@example.com:xiruki-task.git'
I've tried to remove the Gemfile.lock and bundle install again but no luck.
Any workarounds will be appreciated.Answer1:
bundle install and that will generate your gemfile.lock. Then commit it and deploy to heroku