Skip to content

Instantly share code, notes, and snippets.

@phuesler
Created February 13, 2013 11:06
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 phuesler/4943885 to your computer and use it in GitHub Desktop.
Save phuesler/4943885 to your computer and use it in GitHub Desktop.
Poor mans continuous deployment in a screen session
#!/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