style: use casing in option names for readability
This commit is contained in:
parent
b6a6bdc97f
commit
c7e0e23950
|
@ -5,7 +5,7 @@ import * as fs from "fs";
|
||||||
import path from "path";
|
import path from "path";
|
||||||
import log from "./log.js";
|
import log from "./log.js";
|
||||||
|
|
||||||
const config = new Config("lumeweb-relay", "core.confdir");
|
const config = new Config("lumeweb-relay", "core.confDir");
|
||||||
|
|
||||||
let configDir;
|
let configDir;
|
||||||
|
|
||||||
|
@ -33,7 +33,7 @@ config.inject({
|
||||||
|
|
||||||
config.load();
|
config.load();
|
||||||
|
|
||||||
configDir = config.str("core.confdir");
|
configDir = config.str("core.confDir");
|
||||||
|
|
||||||
if (fs.existsSync(configDir)) {
|
if (fs.existsSync(configDir)) {
|
||||||
try {
|
try {
|
||||||
|
|
|
@ -20,7 +20,7 @@ export async function start() {
|
||||||
|
|
||||||
await getPluginAPI().emitAsync("core.appServer.buildRoutes");
|
await getPluginAPI().emitAsync("core.appServer.buildRoutes");
|
||||||
|
|
||||||
await app.listen({ port: config.uint("core.appport"), host: "0.0.0.0" });
|
await app.listen({ port: config.uint("core.appPort"), host: "0.0.0.0" });
|
||||||
|
|
||||||
getPluginAPI().emit("core.appServer.started");
|
getPluginAPI().emit("core.appServer.started");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue