Change ports from 4000/4001 to 4500/4501
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 4001) and chat service (port 4000)
|
||||
# Checks both ttyd (port 4501) and chat service (port 4500)
|
||||
# Provides detailed diagnostics for debugging
|
||||
|
||||
set -e
|
||||
@@ -158,33 +158,33 @@ main() {
|
||||
# Check system resources
|
||||
check_resources
|
||||
|
||||
# Check chat service (port 4000)
|
||||
health_log "INFO" "=== Chat Service (port 4000) ==="
|
||||
if ! check_port 4000 "chat service"; then
|
||||
# Check chat service (port 4500)
|
||||
health_log "INFO" "=== Chat Service (port 4500) ==="
|
||||
if ! check_port 4500 "chat service"; then
|
||||
exit_code=1
|
||||
fi
|
||||
|
||||
if ! check_http "http://localhost:4000/api/health" "chat service" 3; then
|
||||
if ! check_http "http://localhost:4500/api/health" "chat service" 3; then
|
||||
exit_code=1
|
||||
fi
|
||||
|
||||
if ! check_process "chat service" 4000; then
|
||||
if ! check_process "chat service" 4500; then
|
||||
exit_code=1
|
||||
fi
|
||||
|
||||
# Check ttyd service (port 4001) - proxy running, ttyd starts on-demand
|
||||
health_log "INFO" "=== TTYD Proxy Service (port 4001) ==="
|
||||
if ! check_port 4001 "ttyd-proxy"; then
|
||||
# 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:4001/" "ttyd-proxy" 10; then
|
||||
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" 4001; then
|
||||
if ! check_process "ttyd-proxy" 4501; then
|
||||
exit_code=1
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user