We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c947271 commit fa9c481Copy full SHA for fa9c481
docker/docker-entrypoint.sh
@@ -48,7 +48,8 @@ check_postgres() {
48
echo "PostgreSQL is ready!"
49
50
# Verify database connection
51
- if ! PGPASSWORD=$PASS psql -h $HOST -p $PORT -U $USER -d $DB -c "SELECT 1" > /dev/null 2>&1; then
+ # NOTE: preserve stderr for debugging
52
+ if ! PGPASSWORD=$PASS psql -h $HOST -p $PORT -U $USER -d $DB -c "SELECT 1"; then
53
echo "Error: Could not connect to PostgreSQL database"
54
exit 1
55
fi
0 commit comments