🔧 Add fallback to localhost for undefined deployment targets

This commit is contained in:
2026-01-30 04:57:51 +00:00
parent b82e2f2424
commit 66a6db193b

View File

@@ -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}"