Created
February 13, 2013 11:06
-
-
Save phuesler/4943885 to your computer and use it in GitHub Desktop.
Poor mans continuous deployment in a screen session
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
#!/usr/bin/env bash | |
# Hackisch temporary solution to poll git and compile the code | |
# The server will reload automatically | |
while : | |
do | |
git remote update > /dev/null && git status -uno | grep -q "Your branch is behind" && git pull && ./rebar compile; | |
sleep 5; | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment