fix(home-server): displaying the port on which it is running

This commit is contained in:
Karol Sójko
2023-06-02 13:08:23 +02:00
parent 2f569d4104
commit 1e62a3760e
@@ -128,9 +128,11 @@ export class HomeServer implements HomeServerInterface {
})
})
this.serverInstance = server.build().listen(env.get('PORT', true) ? +env.get('PORT', true) : 3000)
const port = env.get('PORT', true) ? +env.get('PORT', true) : 3000
logger.info(`Server started on port ${process.env.PORT}`)
this.serverInstance = server.build().listen(port)
logger.info(`Server started on port ${port}`)
}
async stop(): Promise<void> {