Created
April 16, 2020 12:28
-
-
Save N-Porsh/ae93e076b48f523498a2b9249eea7558 to your computer and use it in GitHub Desktop.
wait for loading db container
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 | |
echo "Waiting for postgres..." | |
while ! nc -z database 5432; do | |
sleep 0.1 | |
done | |
echo "PostgreSQL started" | |
npm start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment