We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 98acf70 commit eeca055Copy full SHA for eeca055
components/log-viewer-webui/server/src/main.ts
@@ -8,7 +8,6 @@ import serviceApp from "./fastify-v2/app.js";
8
9
10
const DEFAULT_FASTIFY_CLOSE_GRACE_DELAY = 500;
11
-const DEFAULT_PORT = 3000;
12
13
/**
14
* Generates logger configuration options based on the environment.
@@ -59,7 +58,7 @@ const init = async (): Promise<void> => {
59
58
await app.ready();
60
61
try {
62
- await app.listen({port: Number(process.env.PORT || DEFAULT_PORT)});
+ await app.listen({host: app.config.HOST, port: app.config.PORT});
63
} catch (err) {
64
app.log.error(err);
65
process.exit(1);
0 commit comments