linkkf 수정3
This commit is contained in:
14
nest_api/anime-api/src/main.ts
Normal file
14
nest_api/anime-api/src/main.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import { Logger } from '@nestjs/common';
|
||||
import { NestFactory } from '@nestjs/core';
|
||||
import { AppModule } from './app.module';
|
||||
import { ConfigService } from '@nestjs/config';
|
||||
|
||||
// const port = process.env.NODE_SERVER_PORT;
|
||||
async function bootstrap() {
|
||||
const app = await NestFactory.create(AppModule);
|
||||
const configService = app.get(ConfigService);
|
||||
const port = configService.get('NODE_SERVER_PORT');
|
||||
await app.listen(port);
|
||||
Logger.log(`Application listening on port ${port}`);
|
||||
}
|
||||
bootstrap();
|
||||
Reference in New Issue
Block a user