rubygem domestic image resolves issue with gem install rails connection Timeout

Source: Internet
Author: User

Why is there this?

Due to domestic network reasons (you know), the intermittent connection to the resource file that rubygems.org stored on Amazon S3 failed. So you will encounter gem install rack or bundle install when the time is not responding, specifically can be used gem install rails -V to view the execution process.

This is a full rubygems.org image, you can use this instead of the official version, the synchronization frequency is currently15 minutes at a time to ensure that the official services are as synchronized as possible.
How do I use it?
$ gem Sources--remove https://rubygems.org/$ gem sources-a https://ruby.taobao.org/$ gem sources-l*** current S Ources ***https://ruby.taobao.org# Make sure only ruby.taobao.org$ gem Install rails   
If you are using bundles (Rails project)
' https://ruby.taobao.org/'rails '4.1.0'. .
Ruby Source code image Ruby source code download image

This image is derived from cache.ruby-lang.org to improve the speed of native ruby installations.

    • Ruby-2.1.2.tar.gz
    • Ruby-2.0.0-p451.tar.gz
    • Ruby-1.9.3-p545.tar.gz
    • Ruby-1.9.2-p320.tar.gz
    • Ruby-1.8.7-p358.tar.gz

Modify the RVM, use this site as a download source, improve the installation speed.

For Mac
$RVM _path/config/db
For Linux
$RVM _path/config/db transfer from: http://ruby.taobao.org/

rubygem domestic image resolves issue with gem install rails connection Timeout

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.