Add health check script and improve Redis debugging
This commit is contained in:
6
start.sh
6
start.sh
@@ -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
|
||||
|
Reference in New Issue
Block a user