Remove port 4501 and update health check to not require ttyd service
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
# Enhanced health check script for Shopify AI App Builder container
|
||||
# Checks both ttyd (port 4501) and chat service (port 4500)
|
||||
# Checks chat service (port 4500)
|
||||
# Provides detailed diagnostics for debugging
|
||||
|
||||
set -e
|
||||
@@ -172,24 +172,7 @@ main() {
|
||||
exit_code=1
|
||||
fi
|
||||
|
||||
# Check ttyd service (port 4501) - proxy running, ttyd starts on-demand
|
||||
health_log "INFO" "=== TTYD Proxy Service (port 4501) ==="
|
||||
if ! check_port 4501 "ttyd-proxy"; then
|
||||
exit_code=1
|
||||
fi
|
||||
|
||||
# Check if proxy responds ( ttyd may not be running yet - that's OK )
|
||||
if ! check_http "http://localhost:4501/" "ttyd-proxy" 10; then
|
||||
exit_code=1
|
||||
fi
|
||||
|
||||
# Check proxy process (not ttyd - ttyd starts on-demand)
|
||||
if ! check_process "ttyd-proxy" 4501; then
|
||||
exit_code=1
|
||||
fi
|
||||
|
||||
# Optionally log that ttyd starts on-demand
|
||||
health_log "INFO" "ttyd-proxy active (ttyd starts on-demand when visited)"
|
||||
# ttyd service has been removed, no longer checking port 4501
|
||||
|
||||
health_log "INFO" "========== HEALTH CHECK END ==========="
|
||||
|
||||
|
||||
Reference in New Issue
Block a user