Add health check script and improve Redis debugging

This commit is contained in:
Andreas Dueren
2025-07-15 08:33:54 -06:00
parent 34c2d30c0c
commit 12917e3dd9
4 changed files with 41 additions and 4 deletions

View File

@@ -55,10 +55,12 @@ if [ -n "${CLOUDRON_REDIS_URL}" ]; then
export REDIS_PORT="${REDIS_PORT}"
export REDIS_PASSWORD="${REDIS_PASSWORD}"
# Also export the full URL in case it's needed
export REDIS_URL="redis://:${REDIS_PASSWORD}@${REDIS_HOST}:${REDIS_PORT}/0"
# Also export the full URL in case it's needed - try different formats
export REDIS_URL="redis://:${REDIS_PASSWORD}@${REDIS_HOST}:${REDIS_PORT}"
export REDIS_DB="0"
echo "=> Redis configured: host=${REDIS_HOST}, port=${REDIS_PORT}"
echo "=> Final Redis URL: ${REDIS_URL}"
else
echo "=> Warning: Redis URL not provided"
# Set dummy Redis URL to prevent validation errors