分享 bundle config local

rubyu2 · January 16, 2015 · Last by ericguo replied at May 02, 2016 · 2077 hits

发现 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
You need to Sign in before reply, if you don't have an account, please Sign up first.