add docker detect

This commit is contained in:
2024-01-21 15:39:19 +08:00
parent e4b0d4c872
commit 3542562a32
5 changed files with 23 additions and 8 deletions

View File

@@ -1,3 +1,6 @@
import { startServer } from "./server.ts";
import { isDocker } from "./utils.ts";
await startServer("./config.json");
const configPath = isDocker() ? "./data/config.json" : "./config.json";
await startServer(configPath);