bundler and future updates

Posted: February 9th, 2010 | Author: | Filed under: ruby, web | Tags: , , , | No Comments »

There was a new post about bundler which addresses a few of the issues that I’ve been having as part of my install.

When running bundle install in the future, Bundler will use packed gems, if available, in preference to gems available in other sources.

This will be nice and solve my issue of re-installing all the gems on each deploy.

You will want to run bundle unlock to remove the lock, then bundle install to ensure that the new dependencies are installed on your system, and finally bundle lock again to relock your application to the new dependencies.

We will add a command in a near-future version to perform all these steps for you (something like bundle install –relock).

This will also replace the unlock, update, lock steps I’ve got in the callbacks.rb for my deploy scripts. Not a huge deal, but fewer commands is better.

The combination of these two updates should speed up the deploy a lot.



Leave a Reply