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 3e94037 commit 4cf463bCopy full SHA for 4cf463b
redisinsight/api/src/main.ts
@@ -30,6 +30,11 @@ export default async function bootstrap(apiPort?: number): Promise<IApp> {
30
}
31
32
const { port, host } = serverConfig;
33
+
34
+ if (apiPort && apiPort !== port) {
35
+ serverConfig.port = apiPort;
36
+ }
37
38
const logger = WinstonModule.createLogger(LOGGER_CONFIG);
39
40
const options: NestApplicationOptions = {
@@ -77,7 +82,7 @@ export default async function bootstrap(apiPort?: number): Promise<IApp> {
77
82
78
83
await app.listen(apiPort || port, host);
79
84
logger.log({
80
- message: `Server is running on http(s)://${host}:${port}`,
85
+ message: `Server is running on http(s)://${host}:${apiPort || port}`,
81
86
context: 'bootstrap',
87
});
88
0 commit comments