Skip to content

Instantly share code, notes, and snippets.

@csexton
Created April 15, 2014 04:22
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 csexton/10701928 to your computer and use it in GitHub Desktop.
Save csexton/10701928 to your computer and use it in GitHub Desktop.
radbot.git/hooks/post-receive
#!/bin/bash
echo "Deploying radbot, yo"
GIT_WORK_TREE=/var/radbot git checkout -f
echo "Bundling like a boss"
cd /var/www/radbot && bundle update
echo "Restarting radbot"
sudo restart radbot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment