wip fix
This commit is contained in:
parent
b4eb0e8388
commit
aec57646dc
|
|
@ -1,8 +1,12 @@
|
||||||
|
import { g } from "./utils/global";
|
||||||
|
|
||||||
|
g.mode = process.argv.includes("dev") ? "dev" : "prod";
|
||||||
|
g.datadir = dir.path(g.mode === "prod" ? "../data" : "data", false);
|
||||||
|
|
||||||
import { parcelBuild } from "utils/parcel";
|
import { parcelBuild } from "utils/parcel";
|
||||||
import { prepareAPITypes } from "./server/api/prep-api-ts";
|
import { prepareAPITypes } from "./server/api/prep-api-ts";
|
||||||
import { startDevWatcher } from "./utils/dev-watcher";
|
import { startDevWatcher } from "./utils/dev-watcher";
|
||||||
import { ensureNotRunning } from "./utils/ensure";
|
import { ensureNotRunning } from "./utils/ensure";
|
||||||
import { g } from "./utils/global";
|
|
||||||
import { createLogger } from "./utils/logger";
|
import { createLogger } from "./utils/logger";
|
||||||
import { preparePrisma } from "./utils/prisma";
|
import { preparePrisma } from "./utils/prisma";
|
||||||
import { syncActionDefinition } from "utils/sync-def";
|
import { syncActionDefinition } from "utils/sync-def";
|
||||||
|
|
@ -29,8 +33,6 @@ if (!g.Y) {
|
||||||
|
|
||||||
await createLogger();
|
await createLogger();
|
||||||
g._api = {};
|
g._api = {};
|
||||||
g.mode = process.argv.includes("dev") ? "dev" : "prod";
|
|
||||||
g.datadir = dir.path(g.mode === "prod" ? "../data" : "data", false);
|
|
||||||
console.log("DataDir", g.datadir);
|
console.log("DataDir", g.datadir);
|
||||||
g.port = parseInt(process.env.PORT || "4550");
|
g.port = parseInt(process.env.PORT || "4550");
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue