updates
This commit is contained in:
@@ -101,11 +101,15 @@ async function loadServerControlConfig(
|
|||||||
serverControlConfigFile?: string,
|
serverControlConfigFile?: string,
|
||||||
): Promise<ServerControlConfig> {
|
): Promise<ServerControlConfig> {
|
||||||
let fullServerControlConfigFile: string;
|
let fullServerControlConfigFile: string;
|
||||||
if (!isFile(metaUrl)) {
|
if (serverControlConfigFile) {
|
||||||
|
fullServerControlConfigFile = serverControlConfigFile;
|
||||||
|
} else if (!isFile(metaUrl)) {
|
||||||
fullServerControlConfigFile = "server-control.json";
|
fullServerControlConfigFile = "server-control.json";
|
||||||
} else {
|
} else {
|
||||||
fullServerControlConfigFile = serverControlConfigFile ||
|
fullServerControlConfigFile = fromFileUrl(metaUrl).replace(
|
||||||
(fromFileUrl(metaUrl).replace(".ts", ".json"));
|
".ts",
|
||||||
|
".json",
|
||||||
|
);
|
||||||
}
|
}
|
||||||
log.debug(
|
log.debug(
|
||||||
`Read server control config file: ${fullServerControlConfigFile}`,
|
`Read server control config file: ${fullServerControlConfigFile}`,
|
||||||
|
|||||||
Reference in New Issue
Block a user