This commit is contained in:
2026-08-10 02:04:45 +02:00
parent 39cb848f67
commit 593edf35fe
10 changed files with 394 additions and 33 deletions
+3 -2
View File
@@ -8,9 +8,10 @@
import { spawnSync } from "node:child_process";
import path from "node:path";
import { DEV_API_PORT, DEV_WEB_PORT } from "./dev-ports.mjs";
import { detectHostProfile, withGoLowMem } from "./lowmem-env.mjs";
import { loadRootEnv, repoRoot } from "./root-env.mjs";
const env = loadRootEnv(process.env);
const env = withGoLowMem(loadRootEnv(process.env), detectHostProfile());
if (!env.DATABASE_URL) {
env.DATABASE_URL =
"postgres://descrybe:descrybe@localhost:5433/descrybe?sslmode=disable";
@@ -28,7 +29,7 @@ function run(args) {
cwd: apiDir,
env,
stdio: "inherit",
shell: process.platform === "win32",
shell: false,
});
if (r.status !== 0) process.exit(r.status ?? 1);
}