Created
July 21, 2016 19:46
-
-
Save wesleyhales/70d376d52762a21463bc3fa27bc07818 to your computer and use it in GitHub Desktop.
site checker
This file contains hidden or 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 | |
args=("$@") | |
#SERVER_MODE=${args[0]} | |
#echo "running in $SERVER_MODE mode" | |
if $(curl -s --head --request GET http://localhost | grep "200 OK" > /dev/null); then | |
echo "site is up" | |
else | |
docker ps | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment