Skip to content

Instantly share code, notes, and snippets.

@shenqihui
Created July 20, 2014 05:05
Show Gist options
  • Save shenqihui/2293f4ea581867ce9209 to your computer and use it in GitHub Desktop.
Save shenqihui/2293f4ea581867ce9209 to your computer and use it in GitHub Desktop.
修改 ruby rails 的 Gemfile template,是source指向 ruby.taobao.org/
#cd $rails_path
#例如
cd /home/vagrant/.rvm/gems/ruby-2.1.0/gems/railties-4.1.4
vi ./lib/rails/generators/rails/plugin/templates/Gemfile
vi ./lib/rails/generators/rails/app/templates/Gemfile
# change source 'https://rubygems.org' into source 'https://ruby.taobao.org/'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment