From 89f468418c422c70b7e81d4ea3501791a37c7de4 Mon Sep 17 00:00:00 2001 From: Tim Van Baak Date: Thu, 28 Nov 2024 11:31:22 -0800 Subject: [PATCH] Make port configurable via IPP_PORT --- app/src/index.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/src/index.ts b/app/src/index.ts index 5f59579..c865b70 100644 --- a/app/src/index.ts +++ b/app/src/index.ts @@ -146,6 +146,7 @@ app.get('*', (req, res) => { }) // Start the ExpressJS server -app.listen(3000, () => { - console.log(dayjs().format() + ' Server started') +const port = process.env.IPP_PORT || 3000; +app.listen(port, () => { + console.log(dayjs().format() + ' Server started on port ' + port) })