-
-
Save bergantine/3693765 to your computer and use it in GitHub Desktop.
Git hooks to activate a ruby gem environment. #git #hook #ruby #gem #bash
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
#!/bin/bash | |
# This hook is run after every virtualenv is activated. | |
export OLD_GEM_HOME=$GEM_HOME | |
export GEM_HOME=$VIRTUAL_ENV/gems/ | |
export GEM_PATH= | |
export PATH=$VIRTUAL_ENV/gems/bin:$PATH |
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
#!/bin/bash | |
# This hook is run before every virtualenv is deactivated. | |
export GEM_HOME=$OLD_GEM_HOME | |
unset GEM_PATH |
as of now this still doesn't totally work... can't import compass... need to tie config.rb in somehow
might be a solution: http://bruno.im/2011/sep/29/streamline-your-django-workflow/
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
then, in your template: