分享 bundle config local

rubyu2 · 2015年01月16日 · 最后由 ericguo 回复于 2016年05月02日 · 2078 次阅读

发现 bundle 还有这样一个功能:

Bundler also allows you to work against a git repository locally instead of using the remote version. This can be achieved by setting up a local override: bundle config local.GEM_NAME /path/to/local/git/repository

不需要的时候再: bundle config --delete local.websocket-rails

Gemfile 中还需要指明 branch

gem 'wechat', git: 'https://github.com/Eric-Guo/wechat', branch: :master
需要 登录 后方可回复, 如果你还没有账号请 注册新账号