Created
February 23, 2012 12:43
-
-
Save andrewmcdonough/1892666 to your computer and use it in GitHub Desktop.
Nifty trick with bundler and rvm. In your app directory:
This file contains hidden or 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
$ echo "export PATH=.bundle/bin:$PATH" >> .rvmrc | |
$ bundle install --binstubs=.bundle/bin | |
$ cd .. | |
$ cd <app-dir> | |
installs binstubs into app_dir/bin, and rvm adds ./bin to your path automatically (and takes it away again when you cd out of the app dir) | |
no more bundle exec |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Once you've done this once, by the way, bundler writes a config file in the .bundle directory, so future
bundle install
calls will automatically put the binstubs in the same location.