Skip to content

Commit fa9c481

Browse files
Preserving stderr to help debug connection issues
1 parent c947271 commit fa9c481

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docker/docker-entrypoint.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ check_postgres() {
4848
echo "PostgreSQL is ready!"
4949

5050
# Verify database connection
51-
if ! PGPASSWORD=$PASS psql -h $HOST -p $PORT -U $USER -d $DB -c "SELECT 1" > /dev/null 2>&1; then
51+
# NOTE: preserve stderr for debugging
52+
if ! PGPASSWORD=$PASS psql -h $HOST -p $PORT -U $USER -d $DB -c "SELECT 1"; then
5253
echo "Error: Could not connect to PostgreSQL database"
5354
exit 1
5455
fi

0 commit comments

Comments
 (0)