fix: look for server.json in .ass-data dir [docker build]

pull/248/head
Josh Moore 8 months ago
parent 1fa55dba4e
commit efdb10b482
No known key found for this signature in database
GPG Key ID: D448BA776D2B1D45

@ -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;

Loading…
Cancel
Save