🔧 Add fallback to localhost for undefined deployment targets
This commit is contained in:
@@ -326,8 +326,10 @@ verify_deployment() {
|
|||||||
# Determine host based on target
|
# Determine host based on target
|
||||||
if [ "$TARGET" = "internal" ]; then
|
if [ "$TARGET" = "internal" ]; then
|
||||||
HOST="10.0.0.81"
|
HOST="10.0.0.81"
|
||||||
else
|
elif [ "$TARGET" = "external" ]; then
|
||||||
HOST="home.gregrjacobs.com"
|
HOST="home.gregrjacobs.com"
|
||||||
|
else
|
||||||
|
HOST="localhost"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
log_info "Checking frontend health..."
|
log_info "Checking frontend health..."
|
||||||
@@ -358,8 +360,10 @@ print_summary() {
|
|||||||
# Determine host based on target
|
# Determine host based on target
|
||||||
if [ "$TARGET" = "internal" ]; then
|
if [ "$TARGET" = "internal" ]; then
|
||||||
HOST="10.0.0.81"
|
HOST="10.0.0.81"
|
||||||
else
|
elif [ "$TARGET" = "external" ]; then
|
||||||
HOST="home.gregrjacobs.com"
|
HOST="home.gregrjacobs.com"
|
||||||
|
else
|
||||||
|
HOST="localhost"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo -e "${GREEN}━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━${NC}"
|
echo -e "${GREEN}━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━${NC}"
|
||||||
|
|||||||
Reference in New Issue
Block a user