Created
February 22, 2015 18:57
-
-
Save dracos/71cb474b35af26573fd9 to your computer and use it in GitHub Desktop.
Using virtualenv for ruby gems
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
# Put this in your virtualenv's postactivate | |
# (if you're using virtualenvwrapper, add to | |
# ~/.virtualenvs/postactivate (or wherever)) | |
export GEM_HOME="$VIRTUAL_ENV/gems" | |
export PATH="$GEM_HOME/bin":$PATH | |
# If you don't want your default ruby gem | |
# locations searched, uncomment this line | |
# export GEM_PATH="" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment