美文网首页
修改Gem,Bundler的镜像为国内源

修改Gem,Bundler的镜像为国内源

作者: 商鲲 | 来源:发表于2019-10-25 03:55 被阅读0次
    # 移除gem默认源,改成ruby-china源
    $ gem sources -r https://rubygems.org/ -a https://gems.ruby-china.com/
    # 使用Gemfile和Bundle的项目,可以做下面修改,就不用修改Gemfile的source
    $ bundle config mirror.https://rubygems.org https://gems.ruby-china.com
    # 删除Bundle的一个镜像源
    $ bundle config --delete 'mirror.https://rubygems.org'
    

    image.png

    相关文章

      网友评论

          本文标题:修改Gem,Bundler的镜像为国内源

          本文链接:https://www.haomeiwen.com/subject/pnmjvctx.html