开发者

how do I speed up a bundle install?

Sometimes I have to run bundle install 10 times in an hour just to 开发者_运维百科the right gems. Presumably this bit:

Fetching source index for http://rubygems.org/

Is only necessary periodically, but definitely doesn't need to be done 10 times in one hour, right? Is there any way to skip this, and use a local cache?

Any help appreciated. Seriously bogging me down...


To avoid updating sources:

gem install my_gem --no-update-sources

You could setup a local gem repository, and specify local file paths for your gems in Gemfile.

gem 'my_gem', '1.0.0', :path => '/path/to/my_gem'

You could also set up a local rubygems server, which could be used through:

source 'http://127.0.0.1:8080' # your gem server

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜