Skip to content

Commit

Permalink
specify hostname in entrypoint
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeh committed Sep 1, 2024
1 parent 5a314fb commit 0aca678
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import { NestFactory } from '@nestjs/core';
import { AppModule } from './app.module.js';

const PORT = process.env.PORT || 3000;

async function bootstrap() {
const app = await NestFactory.create(AppModule);
await app.listen(3000);
await app.listen(PORT, '0.0.0.0');
}
bootstrap();

0 comments on commit 0aca678

Please sign in to comment.