Created
December 18, 2013 21:56
-
-
Save atiaxi/8030541 to your computer and use it in GitHub Desktop.
post-receive
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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