4 ms·
This assumes you don't commit your app's Gemfile.lock into your repository, which you generally should.
by matthuggins 14y ago
This assumes you don't commit your app's Gemfile.lock into your repository, which you generally should.
- navyrain 14y agoNo, bundle update rails will change your Gemfile.lock to the version of rails it upgrades to.
- matthuggins 14y agoYou're right, my mistake. It's just a matter of running `bundle update rails` on your server as well as making the changes in your repository.
- jarin 14y agoAs long as you're using a reasonably good deploy script (capistrano, moonshine, Heroku, etc) you shouldn't have to worry about updating gems on your server. Most deploy scripts will look at your Gemfile.lock and update if necessary during the deploy (or just run bundle install every time, which won't give you a locked version error if your Gemfile.lock matches your Gemfile).
- matthuggins 14y agoDefinitely, and that's the approach I personally would take. I think jarin was looking for a way to quickly update all his servers without having to redeploy for every app.