feat: graphql + typeorm + config + postgresql
This commit is contained in:
@ -1,8 +1,10 @@
|
||||
import { ConfigService } from '@nestjs/config';
|
||||
import { NestFactory } from '@nestjs/core';
|
||||
import { AppModule } from './app.module';
|
||||
|
||||
async function bootstrap() {
|
||||
const app = await NestFactory.create(AppModule);
|
||||
await app.listen(7122);
|
||||
const configService = app.get(ConfigService);
|
||||
await app.listen(configService.get<number>('http.port'));
|
||||
}
|
||||
bootstrap();
|
||||
|
Reference in New Issue
Block a user