Skip to content

Commit

Permalink
fix: log default port
Browse files Browse the repository at this point in the history
  • Loading branch information
ajaysinghj8 committed Jan 17, 2021
1 parent 53d1cf6 commit 6cbb033
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 18,8 @@ function createAServer() {

export const Server = createAServer();

Server.listen( process.env.PORT || 26192, () => {
logger(`listing on ${process.env.PORT}`);
const port = process.env.PORT || 26192;

Server.listen(port, () => {
logger(`listing on ${port}`);
});

0 comments on commit 6cbb033

Please sign in to comment.