Skip to content

Instantly share code, notes, and snippets.

@jcollum
Last active June 4, 2019 00:49
Show Gist options
  • Save jcollum/79e204028588b39aad1f09c19e4b3478 to your computer and use it in GitHub Desktop.
Save jcollum/79e204028588b39aad1f09c19e4b3478 to your computer and use it in GitHub Desktop.
wait for site to come up (bash, curl)
# wait a little for the server to come up
until curl 'http://localhost:3000/foo' -s -f -o /dev/null; do
sleep 2;
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment