Skip to content

Commit

Permalink
Merge pull request #14 from sudeeppr1998/feature/mozhigal-tracker
Browse files Browse the repository at this point in the history
ip address bound to 0.0.0.0 all interfaces
  • Loading branch information
sudeeppr1998 authored Aug 13, 2024
2 parents e1320f7 + def9734 commit 94579b9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ if (cluster.isPrimary) {
} else {
const app = express();
const PORT: number = parseInt(process.env.PORT || '3009');
const HOST: string = '0.0.0.0';
const dataBaseType: string = process.env.DATABASE_TYPE || '';

// Parsing the request data
Expand All @@ -51,7 +52,7 @@ if (cluster.isPrimary) {
});
});

app.listen(PORT, () => {
app.listen(PORT,HOST, () => {
console.log(`Worker ${process.pid} is running on port ${PORT}`);
});
}

0 comments on commit 94579b9

Please sign in to comment.