开发者

What are the benefits and the commands to use the new Bundler?

I have been using Rails for a couple years now and took a break away for a few months and just found myself back on a Rails application. The only problem is I don't know how to use bundler. I've been doing research and I find the command

bundle install

but what others are there and does this actually install the gems locally or开发者_如何学C just for the application?


'bundle install' installs the required gems (specified in Gemfile) on the system.

if you want to know more options, take a look here: http://gembundler.com/rails3.html

bundler helps you to manage dependecies required, you can also 'lock' gems, so your app will use only the specified gems.

you can also 'cache' the required gems with 'bundle package', they'll be compressed in vendor/cache, then when you launch 'bunlde install' it will take the cached gems (think something like freezeing gems)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜