修改项目生成Gemfile的模板

修改项目生成Gemfile的模板

gedit $rvm_path/gems/ruby-2.1.5/gems/railties-4.1.8/lib/rails/generators/rails/app/templates/Gemfile

第一行改为 :

source 'https://ruby.taobao.org'

保存关闭

$rvm_path/gems/ruby-2.1.5/gems/railties-4.1.8/lib/rails/generators/rails/app/templates/Gemfile
原文地址:https://www.cnblogs.com/lizunicon/p/5073078.html