From efdb10b482449a1a01b36e227295b6aafbcc4d55 Mon Sep 17 00:00:00 2001 From: Josh Moore Date: Fri, 3 Nov 2023 18:32:08 -0600 Subject: [PATCH] fix: look for server.json in .ass-data dir [docker build] --- backend/app.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/app.ts b/backend/app.ts index 4c3619b..45afb53 100644 --- a/backend/app.ts +++ b/backend/app.ts @@ -92,11 +92,11 @@ async function main() { // Replace with user details, if necessary try { - const exists = await fs.pathExists(path.join('server.json')); + const exists = await fs.pathExists(path.join('.ass-data/server.json')); if (exists) { // Read file - const { host, port, proxied } = await fs.readJson(path.join('server.json')) as { host?: string, port?: number, proxied?: boolean }; + const { host, port, proxied } = await fs.readJson(path.join('.ass-data/server.json')) as { host?: string, port?: number, proxied?: boolean }; // Set details, if available if (host) serverConfig.host = host;