Remove port 4501 and update health check to not require ttyd service

This commit is contained in:
cto-new[bot]
2026-02-08 09:57:38 +00:00
parent 9889a6e4fd
commit ce8a0cdf15
7 changed files with 1246 additions and 1270 deletions

View File

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