From c2aaaa7c7302a40e0771097be20e1d9bc7107027 Mon Sep 17 00:00:00 2001 From: Hamza KHAIT Date: Wed, 20 Mar 2024 13:45:39 +0100 Subject: [PATCH 1/2] adding process.env.PORT variable --- src/main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.ts b/src/main.ts index 756b4a8..d3971ac 100644 --- a/src/main.ts +++ b/src/main.ts @@ -13,6 +13,6 @@ async function bootstrap() { }); app.useGlobalPipes(new ValidationPipe()); app.use(cookieParser(`${process.env.COOKIE_SECRET}`)); - await app.listen(3001); + await app.listen(process.env.PORT || 3001); } bootstrap(); From 72093c83e2f57b02b5ae16c6051d2833ecefc725 Mon Sep 17 00:00:00 2001 From: Hamza KHAIT Date: Wed, 20 Mar 2024 13:46:06 +0100 Subject: [PATCH 2/2] feat: adding process.env.PORT variable --- src/main.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.ts b/src/main.ts index d3971ac..1c2c029 100644 --- a/src/main.ts +++ b/src/main.ts @@ -15,4 +15,5 @@ async function bootstrap() { app.use(cookieParser(`${process.env.COOKIE_SECRET}`)); await app.listen(process.env.PORT || 3001); } + bootstrap();