Created
September 6, 2013 01:31
-
-
Save ryanemmm/6458443 to your computer and use it in GitHub Desktop.
Was pointed to http://ryanbigg.com/2013/08/bundler-local-paths/ but I wanted "per app" local paths: i.e. App1 uses local.gem but App2 uses the default
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Original from http://ryanbigg.com/2013/08/bundler-local-paths/ | |
> bundle config local.spree ~/Projects/gems/spree | |
- creates ~/.bundle/config | |
- which is used by all projects/apps | |
# Per app | |
> bundle config --local local.gem "path/to/local/gem" | |
- note: I had to manually cd into project/app directory to get this to create the file at 'app/.bundle/config' | |
When I ran this from project/ it created project/.bundle/config (which bundler did not pick up) | |
- Uses the --local switch to create the 'project/app/.bundle/config' vs '~/.bundle/config' | |
- Now when you bundle (install) project will use local/gem | |
- But other branches will still use the default/specified gem | |
- Protip: it might make sense to .gitignore app/.bundle/config |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment