From 7c3edaee94ba559354994e77615e452c5b931c4f Mon Sep 17 00:00:00 2001 From: chenbishop Date: Thu, 12 Sep 2024 14:48:53 +0100 Subject: [PATCH] fixing issue where port number is not properly shown --- app.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app.mjs b/app.mjs index 6bce40b..e72832d 100644 --- a/app.mjs +++ b/app.mjs @@ -188,8 +188,8 @@ async function initApp(app) { await initApp(app); await app.start(process.env.PORT || port); - console.log(`⚡️ Slack Bolt app is running on port ${port}!`); - console.log(`Healthcheck endpoint available at http://localhost:${port}/healthcheck`); + console.log(`⚡️ Slack Bolt app is running on port ${process.env.PORT || port}!`); + console.log(`Healthcheck endpoint available at http://localhost:${process.env.PORT || port}/healthcheck`); // todo: confirm the block below is not preventing the bot to accept event in Cloudrun without no cpu throttling console.log(`Checking all expired duration based accesses are revoked.`) await startUpCleanUp(app)