Skip to content

Commit 9514bf6

Browse files
committed
[exoframe-cli] Fix service formatting, extract URL correctly
Use name instead of deployment name to get URL
1 parent f8b4bcd commit 9514bf6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/exoframe-client/src/utils/formatServices.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ export const formatServices = (services) =>
6161
services.map((svc) => {
6262
const name = svc.Name.slice(1);
6363
const deploymentName = svc.Config.Labels['exoframe.deployment'];
64-
const domain = svc.Config.Labels[`traefik.http.routers.${deploymentName}.rule`]
65-
? formatTraefikRule(svc.Config.Labels[`traefik.http.routers.${deploymentName}.rule`])
64+
const domain = svc.Config.Labels[`traefik.http.routers.${name}.rule`]
65+
? formatTraefikRule(svc.Config.Labels[`traefik.http.routers.${name}.rule`])
6666
: 'Not set';
6767
const networks = svc.NetworkSettings.Networks;
6868
const aliases = Object.keys(networks)

0 commit comments

Comments
 (0)