chore(backend): Provide HTTP url on server launch up
This commit is contained in:

committed by
Ali BARIN

parent
45e98cd5b7
commit
ddb3795985
@@ -1,4 +1,5 @@
|
||||
import type { Server } from 'http';
|
||||
|
||||
import app from './app';
|
||||
import appConfig from './config/app';
|
||||
import logger from './helpers/logger';
|
||||
@@ -6,10 +7,8 @@ import telemetry from './helpers/telemetry';
|
||||
|
||||
telemetry.setServiceType('main');
|
||||
|
||||
const port = appConfig.port;
|
||||
|
||||
const server: Server = app.listen(port, () => {
|
||||
logger.info(`Server is listening on ${port}`);
|
||||
const server: Server = app.listen(appConfig.port, () => {
|
||||
logger.info(`Server is listening on ${appConfig.baseUrl}`);
|
||||
});
|
||||
|
||||
function shutdown(server: Server) {
|
||||
|
Reference in New Issue
Block a user