Skip to content

Instantly share code, notes, and snippets.

@MatthewRDodds
Created October 19, 2016 15:04
Show Gist options
  • Save MatthewRDodds/e65bdcbfc66443012f89cf9b5eb4cbd9 to your computer and use it in GitHub Desktop.
Save MatthewRDodds/e65bdcbfc66443012f89cf9b5eb4cbd9 to your computer and use it in GitHub Desktop.
Solution around commenting out gems for development and specifying path

Without this config update bundler will raise errors, it's a weird default they use (see this issue):

bundle config disable_local_branch_check true

The add the config for the gem to make bundler look to the path you specify rather than where it has downloaded the gem too, as source:

bundle config local.YOUR_GEM_NAME YOUR_GEMS_PATH

Now you can bundle from your local source without commenting out the production version of the gem. No more dirty always staged changes for development only settings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment