port and host in env
This commit is contained in:
parent
6e90d40db4
commit
473e30e7fe
@ -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();
|
||||
|
Reference in New Issue
Block a user