ribbon image search rewind fast-forward speech-bubble pie-graph star

Ruby on Rails gem镜像迁移

最近装rails,再启动程序时发现提醒部分包没装好,提示

gem install rack 或 bundle install  

网上有很多方法,不过最直接的就是找一个靠谱的镜像源,你可以修改gem source 地址到 https://ruby.taobao.org/

$ gem sources --remove https://rubygems.org/
$ gem sources -a https://ruby.taobao.org/
$ gem sources -l
*** CURRENT SOURCES ***

https://ruby.taobao.org  
# 请确保只有 ruby.taobao.org
$ gem install rails

如果使用buddle

$ bundle config mirror.https://rubygems.org https://ruby.taobao.org

详细参考 ruby taobao

You Can Speak "Hi" to Me in Those Ways