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/bash THIS WORKED | |
bash -c 'while ! </dev/tcp/db/5432; do sleep 1; done; nodal db:bootstrap && nodal s;' | |
#THIS WORKS ONLY IF NETSTST INSTALLED | |
while ! nc -w 1 -z db 5432; do sleep 0.1; done | |
#ANOTHER WAY | |
until nc -z postgres 5432; do | |
echo "$(date) - waiting for postgres..." |