Skip to content

Instantly share code, notes, and snippets.

@atiaxi
Created December 18, 2013 21:56
Show Gist options
  • Save atiaxi/8030541 to your computer and use it in GitHub Desktop.
Save atiaxi/8030541 to your computer and use it in GitHub Desktop.
post-receive
#!/bin/sh
sudo /sbin/stop valkyribot
GIT_WORK_TREE=/var/valkyribot git checkout -f
# Perform any necessary migrations
git rev-parse --verify HEAD > /var/faceless-games/valkyribot/VERSION
cd /var/valkyribot
/usr/local/bin/alembic --config=/etc/chromabot/alembic.ini upgrade head
# Bump the server
sudo /sbin/start valkyribot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment