Last active
April 22, 2017 00:30
-
-
Save hyrious/66202d7a89b92096767227ef7c803e1a to your computer and use it in GitHub Desktop.
CMD Script - Setup RubyGem
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
REM https://github.com/ruby-china/rubygems-mirror/wiki | |
REM Download cacert.pem here -> http://curl.haxx.se/ca/cacert.pem | |
setx SSL_CERT_FILE D:\Local\Ruby\lib\cacert.pem | |
call gem update --system | |
call gem sources --add https://gems.ruby-china.org/ --remove https://rubygems.org/ | |
call gem install bundler | |
call bundle config mirror.https://rubygems.org https://gems.ruby-china.org |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment