Skip to content
This repository has been archived by the owner on Dec 19, 2024. It is now read-only.

Commit

Permalink
fix: look for server.json in .ass-data dir [docker build]
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh Moore committed Nov 4, 2023
1 parent 1fa55db commit efdb10b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit efdb10b

Please sign in to comment.