Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save wesleyhales/70d376d52762a21463bc3fa27bc07818 to your computer and use it in GitHub Desktop.
Save wesleyhales/70d376d52762a21463bc3fa27bc07818 to your computer and use it in GitHub Desktop.
site checker
#!/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