Skip to content

Instantly share code, notes, and snippets.

@summerblue
Created October 11, 2013 02:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save summerblue/6928540 to your computer and use it in GitHub Desktop.
Save summerblue/6928540 to your computer and use it in GitHub Desktop.
修改默认 rails new project 后 gemfile 的 sources 为 ruby.taobao.org
# 切换到 rvm 的目录
cd $rvm_path/gems
# 查找 gemfile
find . -type f -name "Gemfile"
# 类似于
vi $rvm_path/gems/ruby-2.0.0-p247/gems/railties-4.0.0/lib/rails/generators/rails/app/templates/Gemfile
# 修改第一行为以下
source 'http://ruby.taobao.org'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment