CodingGirlsClub / cgc_rails_setup

CGC Rails 开发环境一键配置
0 stars 0 forks source link

替换mac脚本国外的源为国内源 #1

Open sundevilyang opened 8 years ago

sundevilyang commented 8 years ago

http://mirrors.ustc.edu.cn

@ZhangHanDong

Thx

ZhangHanDong commented 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  
ZhangHanDong commented 8 years ago

这个源不好用

sundevilyang commented 8 years ago

看来,可能还是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.