bundle update
and bundle install
is ver fantastic. However, is there a good way to undo
bundle install
and bundle update
if something went wrong ?
If you want to upgrade the Bundler version used by your application, you can run bundle update --bundler , and your lockfile will be regenerated using the latest version.
You must use 'gem uninstall gem_name' to uninstall a gem. Show activity on this post. I seemed to solve this by manually removing the unicorn gem via bundler ("sudo bundler exec gem uninstall unicorn"), then rebundling ("sudo bundle install").
There is one obvious way:
git checkout -- Gemfile.lock
and then run
bundle install
It assumes you use git
- but who does not now days, I have everything in git.
I went into Github, copied my old Gemfile.lock
that I wanted and pasted it into my Gemfile.lock
in my code and then ran bundle install
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With