File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -29,9 +29,7 @@ export default async function bootstrap(apiPort?: number): Promise<IApp> {
29
29
await migrateHomeFolder ( ) && await removeOldFolders ( ) ;
30
30
}
31
31
32
- const { port, host } = serverConfig ;
33
-
34
- if ( apiPort && apiPort !== port ) {
32
+ if ( apiPort ) {
35
33
serverConfig . port = apiPort ;
36
34
}
37
35
@@ -80,9 +78,11 @@ export default async function bootstrap(apiPort?: number): Promise<IApp> {
80
78
81
79
const logFileProvider = app . get ( LogFileProvider ) ;
82
80
83
- await app . listen ( apiPort || port , host ) ;
81
+ const { port, host } = serverConfig ;
82
+
83
+ await app . listen ( port , host ) ;
84
84
logger . log ( {
85
- message : `Server is running on http(s)://${ host } :${ apiPort || port } ` ,
85
+ message : `Server is running on http(s)://${ host } :${ port } ` ,
86
86
context : 'bootstrap' ,
87
87
} ) ;
88
88
You can’t perform that action at this time.
0 commit comments