feat(app): revert port & network changes

This commit is contained in:
ItzCrazyKns 2024-05-13 19:58:17 +05:30
parent 100872f2d9
commit 0993c5a760
No known key found for this signature in database
GPG key ID: 8162927C7CCE3065
6 changed files with 12 additions and 21 deletions

View file

@ -3,11 +3,10 @@ import express from 'express';
import cors from 'cors';
import http from 'http';
import routes from './routes';
import { getBindAddress, getPort } from './config';
import { getPort } from './config';
import logger from './utils/logger';
const port = getPort();
const bindAddress = getBindAddress();
const app = express();
const server = http.createServer(app);
@ -24,7 +23,7 @@ app.get('/api', (_, res) => {
res.status(200).json({ status: 'ok' });
});
server.listen(port, bindAddress, () => {
server.listen(port, () => {
logger.info(`Server is running on port ${port}`);
});