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

@@ -166,7 +166,7 @@ else
mkdir -p "$REPO_DIR"
fi
log "Starting Shopify AI App Builder service and ttyd..."
log "Starting Shopify AI App Builder service..."
# Use /opt/webchat directly as it contains the actual server.js with node_modules
# /opt/webchat_v2 is just a wrapper and causes module loading failures
@@ -374,8 +374,6 @@ if [ -n "$CHAT_PID" ]; then
log "Health monitor started with PID: $MONITOR_PID"
fi
# Start ttyd proxy instead of ttyd directly (on-demand activation)
log "Starting ttyd proxy (on-demand mode)"
log "ttyd will only run when port 4501 is accessed"
log "Idle timeout: 5 minutes of inactivity"
exec node /usr/local/bin/ttyd-proxy.js
# Keep the container running
log "Container started successfully. Waiting for chat service..."
wait "$CHAT_PID" || true