Skip to content

Commit

Permalink
debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
mrkeksz committed Oct 22, 2023
1 parent c1231c2 commit c840f2e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,20 @@ import {AppModule} from './app.module'
import {writeFileSync} from 'fs'
import {NestExpressApplication} from '@nestjs/platform-express'
import {ServerConfigService} from './config/server/server.config.service'
import {NODE_ENV} from './config/environment/environment.config.constants'

async function bootstrap() {
console.time('Nest')
console.log('Start')
const app = await NestFactory.create<NestExpressApplication>(AppModule, {
snapshot: true,
abortOnError: false,
})
const serverConfigService = app.get(ServerConfigService)
console.log('Listening on port', serverConfigService.port)
console.log(process.env[NODE_ENV.name])
await app.listen(serverConfigService.port)
console.timeEnd('Nest')
}
void bootstrap().catch(() => {
writeFileSync('error-graph.json', PartialGraphHost.toString() ?? '')
Expand Down

0 comments on commit c840f2e

Please sign in to comment.