Skip to content

Instantly share code, notes, and snippets.

@zhiyelee
Created March 5, 2012 10:18
Show Gist options
  • Save zhiyelee/1977750 to your computer and use it in GitHub Desktop.
Save zhiyelee/1977750 to your computer and use it in GitHub Desktop.
hooks/post-receive.sh
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a she ll session *as a function*
GEM_PATH=$GEM_PATH:/usr/local/rvm/gems/ruby-1.9.2-p290
PATH=$PATH:/usr/local/rvm/gems/ruby-1.9.2-p290/bin
GIT_WORK_TREE=$HOME/octopress/ git checkout -f
cd $HOME/octopress/
bundle install
bundle exec rake generate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment