Skip to content

Instantly share code, notes, and snippets.

@cmwright
Created June 25, 2013 14:47
Show Gist options
  • Save cmwright/5859052 to your computer and use it in GitHub Desktop.
Save cmwright/5859052 to your computer and use it in GitHub Desktop.
Basic git post receive. This file belongs in `{RAILS_ROOT}/.git/hooks`. It needs to be given executable permission (`chmod +x {RAILS_ROOT}/.git/hooks/.post-receive`). Anything written to STDOUT or STDIN will be written back to the user pushing.
#!/bin/bash -l
echo "Starting redeploy of youtube-pusher-staging"
cd /vidyard/VidyardDashboard
unset GIT_DIR
git checkout -f
echo "Bundling..."
bundle install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment