Introduction and usage of domestic rubygems mirrors by Taobao _ruby topics

Source: Internet
Author: User

The solution is to use the RubyGems image of Taobao, which is a complete rubygems.org mirror, you can replace the official version, Sync frequency is currently 15 minutes to ensure that as far as possible with the official service synchronization.


How to use

Gem

Remove the old source and use the new feed instead.

Copy Code code as follows:

$ gem Sources--remove https://rubygems.org/
$ gem sources-a http://ruby.taobao.org/
$ gem sources-l
Current SOURCES * * *

http://ruby.taobao.org
# Please make sure only ruby.taobao.org
$ gem Install you want to install the gem

Bundle

Copy Code code as follows:

SOURCE ' http://ruby.taobao.org/'
Gem ' rails ', ' 4.0.2 '
...

Ruby Source Code Mirroring

As an additional benefit, Taobao also offers ruby source code download mirrors to improve the speed of ruby installation in the country.

For example, using RVM, you can switch to Taobao for download sources:

Copy Code code as follows:

$ Sed-i ' s!cache.ruby-lang.org/pub/ruby!ruby.taobao.org/mirrors/ruby! ' $RVM _path/config/db

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.