feat: Convert app, server, worker ts files to JS

This commit is contained in:
Faruk AYDIN
2024-01-04 21:47:34 +01:00
parent 0f71924d06
commit 523f8a8951
3 changed files with 4 additions and 7 deletions

View File

@@ -0,0 +1,18 @@
import app from './app';
import appConfig from './config/app';
import logger from './helpers/logger';
import telemetry from './helpers/telemetry';
telemetry.setServiceType('main');
const server = app.listen(appConfig.port, () => {
logger.info(`Server is listening on ${appConfig.baseUrl}`);
});
function shutdown(server) {
server.close();
}
process.on('SIGTERM', () => {
shutdown(server);
});