diff --git a/backend/stack.ts b/backend/stack.ts index f2176961..f568292c 100644 --- a/backend/stack.ts +++ b/backend/stack.ts @@ -416,7 +416,7 @@ export class Stack { } options.splice(1, 0, "--env-file", "../global.env"); } - console.log(options); + log.debug("getComposeOptions", options); return options; } @@ -512,6 +512,10 @@ export class Stack { async getServiceStatusList() { let statusList = new Map(); + if (! this.isManagedByDockge) { + log.warn("getServiceStatusList", `Cannot request status for stack '${this.name}' as directory '${this.path}' does not exist.`) + return statusList; + } try { let res = await childProcessAsync.spawn("docker", this.getComposeOptions("ps", "--format", "json"), { cwd: this.path,