diff --git a/src/main.ts b/src/main.ts index 863d019..c8b7914 100644 --- a/src/main.ts +++ b/src/main.ts @@ -46,6 +46,9 @@ async function bootstrap() { app.setBaseViewsDir(join(__dirname, '..', 'views')); app.setViewEngine('pug'); - await app.listen(3000, '0.0.0.0'); + await app.listen( + parseInt(process.env.NEST_PORT, 10) || 3000, + process.env.NEST_HOST || '0.0.0.0', + ); } bootstrap();