summaryrefslogtreecommitdiff
path: root/src/main.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.ts')
-rw-r--r--src/main.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main.ts b/src/main.ts
index 13cad38..90ecef4 100644
--- a/src/main.ts
+++ b/src/main.ts
@@ -1,8 +1,11 @@
+import { config } from 'dotenv';
import { NestFactory } from '@nestjs/core';
import { AppModule } from './app.module';
+config();
+
async function bootstrap() {
const app = await NestFactory.create(AppModule);
- await app.listen(3000);
+ await app.listen(process.env.PORT);
}
bootstrap();