Skip to content

Instantly share code, notes, and snippets.

@aslam
Forked from robbyrussell/post-checkout
Created May 10, 2011 17:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aslam/964970 to your computer and use it in GitHub Desktop.
Save aslam/964970 to your computer and use it in GitHub Desktop.
post-checkout hook to reload bundler and restart passenger
#!/bin/sh
#
# Just save this as .git/hooks/post-checkout in your Rails application
#
env ARCHFLAGS="-arch x86_64" bundle install
touch tmp/restart.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment