Skip to content

Instantly share code, notes, and snippets.

@adamrneary
Last active February 19, 2016 06:41
Show Gist options
  • Save adamrneary/81f5e9914969cd55f36f to your computer and use it in GitHub Desktop.
Save adamrneary/81f5e9914969cd55f36f to your computer and use it in GitHub Desktop.
#!/bin/bash -x
echo "Waiting for mothership server to become active"
while ! nc -z localhost $MOTHERSHIP_PORT; do sleep 2; done
echo "Waiting for beacon to become active"
while ! nc -z localhost $SIGNALLING_SERVER_PORT; do sleep 2; done
echo "Waiting for admin build to complete"
while [ ! -f /tmp/webpack-admin ]; do sleep 2; done
echo "Waiting for execution build to complete"
while [ ! -f /tmp/webpack-execution]; do sleep 2; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment