artify / wait-for-postgres.sh
mfoud444's picture
first commit
8edbc20
raw
history blame contribute delete
120 Bytes
#!/bin/bash
until pg_isready -h localhost -p 5432; do
echo "Waiting for PostgreSQL to be ready..."
sleep 2
done