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