From ff69e9e00a29f4e3f1ca343a6ddef5185e5e415a Mon Sep 17 00:00:00 2001 From: Angel <10299587+Darkangeel-hd@users.noreply.github.com> Date: Fri, 3 Dec 2021 00:01:48 +0100 Subject: [PATCH] Add correct port to starting log This prints the current listening port in the case it is a non default one --- src/index.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/index.js b/src/index.js index 692c9cc..e661d48 100644 --- a/src/index.js +++ b/src/index.js @@ -1,6 +1,7 @@ import app from './app.js'; +const port = process.env.PORT || 5000; -app.listen(process.env.PORT || 5000, () => { +app.listen(port, () => { console.clear(); - console.info(`API Running on: 5000 ============================`); + console.info(`API Running on: ${port} ============================`); });