如何进行“捆绑安装"跑得更快 [英] How to make "bundle install" run faster

查看:45
本文介绍了如何进行“捆绑安装"跑得更快的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我需要在 Gemfile 中添加一个新的依赖 gem 时,然后运行捆绑安装"似乎需要永远(有时对我来说需要 7 分钟).我怎样才能使这个过程更快?

When I need to add a new dependent gem in the Gemfile, then run "bundle install" it seems to take forever (sometimes 7 minutes for me). How can I make this process faster?

我在网上搜索了一下,它提到了一个 Gemfile.lock 文件.这出现在我的本地目录中.但是运行捆绑安装"仍然需要很长时间.

I did a search on the web, and it mentioned a Gemfile.lock file. That is appearing for me in my local directory. But running "bundle install" still takes forever.

过去 2 周我一直在学习 Ruby on Rails(所以请原谅新人的问题,如果答案很明显).

I've been learning Ruby on Rails for the past 2 weeks (so forgive the newby question, if the answer is obvious).

推荐答案

听起来他们做了一些改变在 bundler 1.1 中,它会提高一些速度,所以我会从尝试开始:

It sounds like they have made some changes in bundler 1.1 that are going to give some speed improvements so I would start by trying that:

mike@sleepycat:~$ sudo gem install bundler --prerelease
Fetching: bundler-1.1.pre.1.gem (100%)
Successfully installed bundler-1.1.pre.1
1 gem installed

这篇关于如何进行“捆绑安装"跑得更快的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆