@cloud-cli/px 4.2.0 → 4.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/proxy-manager.js +2 -2
- package/package.json +1 -1
package/dist/proxy-manager.js
CHANGED
|
@@ -139,6 +139,7 @@ export class ProxyManager {
|
|
|
139
139
|
continue;
|
|
140
140
|
px.add(new ProxyEntry({
|
|
141
141
|
domain: t.labels.host,
|
|
142
|
+
path: t.labels.path || '',
|
|
142
143
|
target: `http://localhost:${t.ports[0].host}`,
|
|
143
144
|
redirectToHttps: true,
|
|
144
145
|
cors: true,
|
|
@@ -149,8 +150,7 @@ export class ProxyManager {
|
|
|
149
150
|
async getRunningContainers() {
|
|
150
151
|
const ps = await exec("docker", ["ps", "-aq"]);
|
|
151
152
|
const ids = ps.stdout.trim().split("\n");
|
|
152
|
-
const
|
|
153
|
-
const state = await exec("docker", ["inspect", format, ...ids]);
|
|
153
|
+
const state = await exec("docker", ["inspect", ...ids]);
|
|
154
154
|
const json = JSON.parse(state.stdout);
|
|
155
155
|
return json.map(readDockerContainer);
|
|
156
156
|
}
|