chore: use docker exec for Redis readiness check in local-up.sh
This commit is contained in:
@@ -21,7 +21,7 @@ done
|
|||||||
|
|
||||||
echo "Waiting for Redis..."
|
echo "Waiting for Redis..."
|
||||||
RETRY_COUNT=0
|
RETRY_COUNT=0
|
||||||
until redis-cli -h localhost -p 6379 ping | grep -q "PONG"; do
|
until docker exec mci-redis redis-cli ping | grep -q "PONG"; do
|
||||||
RETRY_COUNT=$((RETRY_COUNT + 1))
|
RETRY_COUNT=$((RETRY_COUNT + 1))
|
||||||
if [ "$RETRY_COUNT" -ge 30 ]; then
|
if [ "$RETRY_COUNT" -ge 30 ]; then
|
||||||
echo "Redis did not become ready within 30 seconds."
|
echo "Redis did not become ready within 30 seconds."
|
||||||
|
|||||||
Reference in New Issue
Block a user