mirror of
https://github.com/lifegpc/eh-downloader.git
synced 2026-06-06 05:38:44 +08:00
add docker detect
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user