diff options
| author | Joseph Ditton <jditton.atomic@gmail.com> | 2021-10-29 19:06:19 -0600 |
|---|---|---|
| committer | Joseph Ditton <jditton.atomic@gmail.com> | 2021-10-29 19:06:19 -0600 |
| commit | 40424ce3c7bc4cbd796abb3dd948455f1aa90e74 (patch) | |
| tree | 68e47f2b643542fb463f684e209f933fe96df260 /src | |
| parent | 1997a981105c9910d2d0a150adb39a6bfe706e01 (diff) | |
| download | locchat-40424ce3c7bc4cbd796abb3dd948455f1aa90e74.tar.gz locchat-40424ce3c7bc4cbd796abb3dd948455f1aa90e74.zip | |
adds .env
Diffstat (limited to 'src')
| -rw-r--r-- | src/main.ts | 5 |
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(); |
