ework-web 0.4.4 → 0.4.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/package.json +1 -1
- package/src/index.ts +4 -2
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -235,9 +235,11 @@ function daemonEnvPath(): string | null {
|
|
|
235
235
|
const p = join(dataDir, ".env");
|
|
236
236
|
return existsSync(p) ? p : null;
|
|
237
237
|
}
|
|
238
|
-
//
|
|
239
|
-
//
|
|
238
|
+
// Sibling layout (ework-aio managed): web's cwd is <dataDir>/ework-web/,
|
|
239
|
+
// daemon is at <dataDir>/ework-daemon/.env. Checked first because it works
|
|
240
|
+
// regardless of where --data-dir points (Docker, custom paths, etc.).
|
|
240
241
|
const candidates = [
|
|
242
|
+
join(process.cwd(), "..", "ework-daemon", ".env"),
|
|
241
243
|
join(homedir(), ".local", "share", "ework-daemon", ".env"),
|
|
242
244
|
join(homedir(), ".local", "share", "ework-aio", "ework-daemon", ".env"),
|
|
243
245
|
];
|