Merge pull request #9 from beeman/beeman/update-server-ts

Update bootstrap logic in server.ts
This commit is contained in:
Kamil Myśliwiec 2017-09-13 12:46:21 +02:00 committed by GitHub
commit 7a9d823dbb
1 changed files with 5 additions and 2 deletions

View File

@ -1,5 +1,8 @@
import { NestFactory } from '@nestjs/core';
import { ApplicationModule } from './modules/app.module';
const app = NestFactory.create(ApplicationModule);
app.listen(3000, () => console.log('Application is listening on port 3000.'));
async function bootstrap() {
const app = await NestFactory.create(ApplicationModule);
await app.listen(3000);
}
bootstrap();