heroku: Gemfile.lock is required issue
Few things
- Did you placed Gemfile.lock in git? if yes, is it lock (means updated? - you did several times just double check)
- Just do
bundle install
on your local prompt. - now place Gemfile.lock
git add .
or you can add only Gemfile.lock with thisgit add Gemfile.lock
- git commit -m "commit message here"
- git push
Now do git push heroku
it should work.
Most likely your Gemfile.lock is not committed to your repository. Use git st
and ensure that the Gemfile.lock is committed; check your .gitignore file to make sure that you're not accidentally ignoring it.
On your development machine run
rm -rf .bundle && bundle install && git add Gemfile.lock && git commit -m "Added Gemfile.lock"
Then deploy.