Created
October 11, 2013 02:01
-
-
Save summerblue/6928540 to your computer and use it in GitHub Desktop.
修改默认 rails new project 后 gemfile 的 sources 为 ruby.taobao.org
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
# 切换到 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