宝石非常慢 [英] gem is very slow

查看:126
本文介绍了宝石非常慢的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的服务器上搜索速度很快,但在本地机器上,gem搜索很慢。
我可以做些什么来加速我的宝石搜索?

解决方案

Doc Snuggles的解决方案确实有效。

应该注意到你的 gem 命令可能存在于一个gemset中,即:

  rvm info | grep gem 

会告诉你 gem

然后编辑它并在任何其他 require 之前添加魔术线:

  require'resolv-replace'


On my server searching is fast but on my local machine gem searches are slow. Can I do something for speed up my gem searches?

解决方案

The solution from Doc Snuggles really works.

But it should be notice that your gem command maybe living in a gemset, that is:

rvm info | grep gem

will tell you where the gem script lives.

Then edit it and add the magic line before any other require:

require 'resolv-replace'

这篇关于宝石非常慢的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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