我在推送/部署到 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 并再次捆绑安装,但没有运气。
任何解决方法将不胜感激。