dokku-compose 0.6.4 → 0.6.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.
Files changed (2) hide show
  1. package/dist/index.js +13 -12
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -142,6 +142,11 @@ function createRunner(opts = {}) {
142
142
  const result = await execa("dokku", args);
143
143
  return { stdout: result.stdout, ok: true };
144
144
  } catch (e) {
145
+ if (process.env.DOKKU_COMPOSE_DEBUG) {
146
+ console.error(`[debug] execDokku error for: dokku ${args.join(" ")}`);
147
+ console.error(`[debug] exit code: ${e.exitCode}, stderr: ${(e.stderr ?? "").slice(0, 200)}`);
148
+ console.error(`[debug] stdout length: ${(e.stdout ?? "").length}`);
149
+ }
145
150
  return { stdout: e.stdout ?? "", ok: false };
146
151
  }
147
152
  }
@@ -556,12 +561,10 @@ function buildConfigFromReports(builderReport, dockerfileReport, appJsonReport,
556
561
  var Builder = {
557
562
  key: "build",
558
563
  async read(ctx, target) {
559
- const [builderRaw, dockerfileRaw, appJsonRaw, dockerOptsRaw] = await Promise.all([
560
- ctx.query("builder:report", target),
561
- ctx.query("builder-dockerfile:report", target),
562
- ctx.query("app-json:report", target),
563
- ctx.query("docker-options:report", target)
564
- ]);
564
+ const builderRaw = await ctx.query("builder:report", target);
565
+ const dockerfileRaw = await ctx.query("builder-dockerfile:report", target);
566
+ const appJsonRaw = await ctx.query("app-json:report", target);
567
+ const dockerOptsRaw = await ctx.query("docker-options:report", target);
565
568
  const dockerOptsReport = parseReport(dockerOptsRaw, "docker-options");
566
569
  return buildConfigFromReports(
567
570
  parseReport(builderRaw, "builder"),
@@ -571,12 +574,10 @@ var Builder = {
571
574
  );
572
575
  },
573
576
  async readAll(ctx) {
574
- const [builderRaw, dockerfileRaw, appJsonRaw, dockerOptsRaw] = await Promise.all([
575
- ctx.query("builder:report"),
576
- ctx.query("builder-dockerfile:report"),
577
- ctx.query("app-json:report"),
578
- ctx.query("docker-options:report")
579
- ]);
577
+ const builderRaw = await ctx.query("builder:report");
578
+ const dockerfileRaw = await ctx.query("builder-dockerfile:report");
579
+ const appJsonRaw = await ctx.query("app-json:report");
580
+ const dockerOptsRaw = await ctx.query("docker-options:report");
580
581
  const builderBulk = parseBulkReport(builderRaw, "builder");
581
582
  const dockerfileBulk = parseBulkReport(dockerfileRaw, "builder-dockerfile");
582
583
  const appJsonBulk = parseBulkReport(appJsonRaw, "app-json");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dokku-compose",
3
- "version": "0.6.4",
3
+ "version": "0.6.5",
4
4
  "description": "Docker Compose for Dokku — declare your entire server in a single YAML file.",
5
5
  "main": "dist/index.js",
6
6
  "exports": "./dist/index.js",