Skip to content

Commit 4cf463b

Browse files
committed
RI-6357 fix app start telemetry
1 parent 3e94037 commit 4cf463b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

redisinsight/api/src/main.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ export default async function bootstrap(apiPort?: number): Promise<IApp> {
3030
}
3131

3232
const { port, host } = serverConfig;
33+
34+
if (apiPort && apiPort !== port) {
35+
serverConfig.port = apiPort;
36+
}
37+
3338
const logger = WinstonModule.createLogger(LOGGER_CONFIG);
3439

3540
const options: NestApplicationOptions = {
@@ -77,7 +82,7 @@ export default async function bootstrap(apiPort?: number): Promise<IApp> {
7782

7883
await app.listen(apiPort || port, host);
7984
logger.log({
80-
message: `Server is running on http(s)://${host}:${port}`,
85+
message: `Server is running on http(s)://${host}:${apiPort || port}`,
8186
context: 'bootstrap',
8287
});
8388

0 commit comments

Comments
 (0)