feat: configure ports, db url and api url with env variables

This commit is contained in:
Elias Schneider
2023-04-25 23:39:57 +02:00
parent b33c1d7f4b
commit e5071cba12
6 changed files with 17 additions and 8 deletions

View File

@@ -30,6 +30,6 @@ async function bootstrap() {
SwaggerModule.setup("api/swagger", app, document);
}
await app.listen(8080);
await app.listen(process.env.PORT || 8080);
}
bootstrap();