mirror of
https://github.com/standardnotes/server
synced 2026-07-14 00:01:54 -04:00
fix(home-server): displaying the port on which it is running
This commit is contained in:
@@ -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> {
|
||||
|
||||
Reference in New Issue
Block a user