update
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user