dokku-compose 0.3.4 → 0.3.5
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/index.js +9 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -175,7 +175,9 @@ async function destroyApp(runner, app) {
|
|
|
175
175
|
}
|
|
176
176
|
async function exportApps(runner) {
|
|
177
177
|
const output = await runner.query("apps:list");
|
|
178
|
-
return output.split("\n").map((s) => s.trim()).filter(
|
|
178
|
+
return output.split("\n").map((s) => s.trim()).filter(
|
|
179
|
+
(s) => s && !s.startsWith("=====>")
|
|
180
|
+
);
|
|
179
181
|
}
|
|
180
182
|
|
|
181
183
|
// src/modules/domains.ts
|
|
@@ -261,9 +263,10 @@ async function ensureAppNetwork(runner, app, network) {
|
|
|
261
263
|
await runner.run("network:set", app, "tld", network.tld);
|
|
262
264
|
}
|
|
263
265
|
}
|
|
266
|
+
var DOCKER_BUILTIN_NETWORKS = /* @__PURE__ */ new Set(["bridge", "host", "none"]);
|
|
264
267
|
async function exportNetworks(runner) {
|
|
265
268
|
const output = await runner.query("network:list");
|
|
266
|
-
return output.split("\n").map((s) => s.trim()).filter(
|
|
269
|
+
return output.split("\n").map((s) => s.trim()).filter((s) => s && !s.startsWith("=====>") && !DOCKER_BUILTIN_NETWORKS.has(s));
|
|
267
270
|
}
|
|
268
271
|
async function exportAppNetwork(runner, app) {
|
|
269
272
|
const output = await runner.query("network:report", app);
|
|
@@ -470,7 +473,10 @@ async function exportAppNginx(runner, app) {
|
|
|
470
473
|
const match = line.match(/^\s*Nginx\s+(.+?):\s*(.+?)\s*$/);
|
|
471
474
|
if (match) {
|
|
472
475
|
const key = match[1].toLowerCase().replace(/\s+/g, "-");
|
|
473
|
-
|
|
476
|
+
if (key.startsWith("computed-") || key.startsWith("global-") || key === "last-visited-at") continue;
|
|
477
|
+
const value = match[2].trim();
|
|
478
|
+
if (!value) continue;
|
|
479
|
+
result[key] = value;
|
|
474
480
|
}
|
|
475
481
|
}
|
|
476
482
|
return Object.keys(result).length > 0 ? result : void 0;
|