Where does bundle install fit into the add-commit-push workflow? In other words, when is it necessary.
Ruby Workflow - Bundle Install
102 Views Asked by Juan Liner At
2
There are 2 best solutions below
0
On
You will need to launch bundle install every time that you update your Gemfile.
Before you run it, make sure you have bundler gem installed:
$ gem install bundler
You can integrate this command and several others adding some git hooks. For example, I use overcommit gem to make sure that some actions are performed before commit, merge and push.
You would want to ensure that you have run
bundle installbefore adding files to a git commit. You should be in the habit of runningbundle installevery time yourGemfileis changed.Please note: Git and Bundler are independent. The only reason you want to have run
bundle installbefore adding to git is to ensure that yourGemfile.lockis updated to contain the latest information.