Ruby ruby 已换源为 ruby-china,为什么 rails new 还是用的 rubygems 呢

ytp · 2023年12月05日 · 最后由 ytp 回复于 2023年12月06日 · 431 次阅读

如题如题

结果还是:

2 楼 已删除

rails 用 bundler 来管理 Gems,所以还需要设置 bundler 的配置。

bundle config mirror.https://rubygems.org https://gems.ruby-china.com/
Gao-Jun 回复

参照你的的方法,问题已解决,谢谢大佬

bundle config set --global mirror.https://rubygems.org https://gems.ruby-china.com
ytp 关闭了讨论。 12月06日 11:23
需要 登录 后方可回复, 如果你还没有账号请 注册新账号