Skip to content

Commit f06b2da

Browse files
committed
feat: Use PORT environment variable as default port
Fixes #125
1 parent 6bbf80f commit f06b2da

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/lib/application/files/js/src/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ import { AppModule } from './app.module';
33

44
async function bootstrap() {
55
const app = await NestFactory.create(AppModule);
6-
await app.listen(3000);
6+
await app.listen(process.env.PORT || 3000);
77
}
88
bootstrap();

src/lib/application/files/ts/src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ import { AppModule } from './app.module';
33

44
async function bootstrap() {
55
const app = await NestFactory.create(AppModule);
6-
await app.listen(3000);
6+
await app.listen(process.env.PORT || 3000);
77
}
88
bootstrap();

src/lib/sub-app/files/js/src/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ import { AppModule } from './app.module';
33

44
async function bootstrap() {
55
const app = await NestFactory.create(AppModule);
6-
await app.listen(3000);
6+
await app.listen(process.env.PORT || 3000);
77
}
88
bootstrap();

src/lib/sub-app/files/ts/src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ import { AppModule } from './app.module';
33

44
async function bootstrap() {
55
const app = await NestFactory.create(AppModule);
6-
await app.listen(3000);
6+
await app.listen(process.env.PORT || 3000);
77
}
88
bootstrap();

0 commit comments

Comments
 (0)