Open sundevilyang opened 8 years ago
替换 Gems默认源:
gem sources #列出默认源
gem sources --remove https://rubygems.org/ #移除默认源
gem sources -a https://mirrors.ustc.edu.cn/rubygems/ #添加科大源
替换Rails项目Gemfile源:
# 项目根目录
cd path/to/your/project
#Linux only:
sed -i "/^source/c source 'http://mirrors.ustc.edu.cn/rubygems/'" Gemfile
#OS X only:
sed -ig "s/^source.*/source 'http:\\/\\/mirrors.ustc.edu.cn\\/rubygems\\/'/g" Gemfile
这个源不好用
看来,可能还是ruby-china好点
On Jul 27, 2016, at 8:32 AM, Alex notifications@github.com wrote:
这个源不好用
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/CodingGirlsClub/cgc_rails_setup/issues/1#issuecomment-235447625, or mute the thread https://github.com/notifications/unsubscribe-auth/ABbgTgHaw-NMAE7o7qp77sQebZ7WE47-ks5qZqcsgaJpZM4JTPlo.
http://mirrors.ustc.edu.cn
@ZhangHanDong
Thx