Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
logger "started"
sudo apt-get update --yes
sudo apt-get upgrade --yes
cd worker/
git clean -fdx
git checkout master
git pull --force origin master
mvn package
rm log.log
touch log.log
tail -f log.log | logger > /dev/null &
mvn exec:java > log.log 2>&1
logger "done"
cd ../
gcloud compute instances stop INSTANCE_NAME --zone "ZONE"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment