Skip to content

Commit

Permalink
Merge branch 'BrunnerLivio-feature/use-env-port'
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilmysliwiec committed Oct 16, 2024
2 parents 7acea9b + 1572899 commit 8cb708c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/lib/application/files/js/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ import { AppModule } from './app.module';

async function bootstrap() {
const app = await NestFactory.create(AppModule);
await app.listen(3000);
await app.listen(process.env.PORT || 3000);
}
bootstrap();
2 changes: 1 addition & 1 deletion src/lib/application/files/ts/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ import { AppModule } from './app.module';

async function bootstrap() {
const app = await NestFactory.create(AppModule);
await app.listen(3000);
await app.listen(process.env.PORT ?? 3000);
}
bootstrap();
2 changes: 1 addition & 1 deletion src/lib/sub-app/files/js/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ import { AppModule } from './app.module';

async function bootstrap() {
const app = await NestFactory.create(AppModule);
await app.listen(3000);
await app.listen(process.env.PORT || 3000);
}
bootstrap();
2 changes: 1 addition & 1 deletion src/lib/sub-app/files/ts/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ import { <%= classify(name) %>Module } from './<%= name %>.module';

async function bootstrap() {
const app = await NestFactory.create(<%= classify(name) %>Module);
await app.listen(3000);
await app.listen(process.env.port ?? 3000);
}
bootstrap();

0 comments on commit 8cb708c

Please sign in to comment.