From 299e2b60a85ce44c542088ffdd91013d780ea13c Mon Sep 17 00:00:00 2001 From: yaowenc2 Date: Mon, 11 May 2026 13:22:01 -0700 Subject: [PATCH] fix(cli): surface container port in compute deploy/update output Print "Port: " alongside the endpoint on success so users can spot image-vs-port mismatches (e.g. nginx:alpine listening on 80 deployed with the default --port 8080) without having to inspect the service. Co-Authored-By: Claude Opus 4.7 (1M context) --- src/commands/compute/deploy.ts | 2 ++ src/commands/compute/update.ts | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/commands/compute/deploy.ts b/src/commands/compute/deploy.ts index 54288f8..3664a91 100644 --- a/src/commands/compute/deploy.ts +++ b/src/commands/compute/deploy.ts @@ -142,6 +142,7 @@ export function registerComputeDeployCommand(computeCmd: Command): void { const verb = existing ? 'updated' : 'deployed'; outputSuccess(`Service "${service.name}" ${verb} [${service.status}]`); if (service.endpointUrl) console.log(` Endpoint: ${service.endpointUrl}`); + if (service.port !== undefined) console.log(` Port: ${service.port} (container must listen on this port)`); } await reportCliUsage('cli.compute.deploy', true); return; @@ -269,6 +270,7 @@ export function registerComputeDeployCommand(computeCmd: Command): void { const verb = existing ? 'updated' : 'deployed'; outputSuccess(`Service "${service.name}" ${verb} [${service.status}]`); if (service.endpointUrl) console.log(` Endpoint: ${service.endpointUrl}`); + if (service.port !== undefined) console.log(` Port: ${service.port} (container must listen on this port)`); console.log(` Image: ${imageRef} (built remotely; no local image to clean up)`); } diff --git a/src/commands/compute/update.ts b/src/commands/compute/update.ts index 9596e39..358a4d6 100644 --- a/src/commands/compute/update.ts +++ b/src/commands/compute/update.ts @@ -131,6 +131,8 @@ export function registerComputeUpdateCommand(computeCmd: Command): void { outputJson(service); } else { outputSuccess(`Service "${service.name}" updated [${service.status}]`); + if (service.endpointUrl) console.log(` Endpoint: ${service.endpointUrl}`); + if (service.port !== undefined) console.log(` Port: ${service.port} (container must listen on this port)`); } await reportCliUsage('cli.compute.update', true); } catch (err) {