How to set Bundler to fetch Github gems using HTTPS
22 JAN 2017
Fetching Github gems using HTTPS instead of git protocol is going to be the new default when Bundler 2.0 is released. Here are the instructions on how to do it locally and on Heroku and Travis CI before Bundler 2.0 is released.
Configure Bundler to use HTTPS for GitHub sources:
bundle config --global github.https true
And on Heroku (note the double underscore):
heroku config:set BUNDLE_GITHUB__HTTPS=true
And on Travis (put it to your .travis.yml
file):
before_install:
- "bundle config --global github.https true"