Remove port 4501 and update health check to not require ttyd service
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user