mirror of
https://github.com/nestjs/nest.git
synced 2026-10-28 09:45:43 +08:00
sample: add await to bootstrap calls
This commit is contained in:
37 files changed
+37
-37
No files matched your search
@@ -9,4 +9,4 @@ async function bootstrap() {
|
||||
await app.listen(3000);
|
||||
console.log(`Application is running on: ${await app.getUrl()}`);
|
||||
}
|
||||
bootstrap();
|
||||
await bootstrap();
|
||||
@@ -12,4 +12,4 @@ async function bootstrap() {
|
||||
await app.listen(3000);
|
||||
console.log(`Application is running on: ${await app.getUrl()}`);
|
||||
}
|
||||
bootstrap();
|
||||
await bootstrap();
|
||||
@@ -24,4 +24,4 @@ async function bootstrap() {
|
||||
await app.listen(3001);
|
||||
console.log(`Application is running on: ${await app.getUrl()}`);
|
||||
}
|
||||
bootstrap();
|
||||
await bootstrap();
|
||||
@@ -25,4 +25,4 @@ async function bootstrap() {
|
||||
await app.listen(3001);
|
||||
console.log(`Application is running on: ${await app.getUrl()}`);
|
||||
}
|
||||
bootstrap();
|
||||
await bootstrap();
|
||||
@@ -6,4 +6,4 @@ async function bootstrap() {
|
||||
await app.listen(3000);
|
||||
console.log(`Application is running on: ${await app.getUrl()}`);
|
||||
}
|
||||
bootstrap();
|
||||
await bootstrap();
|
||||
@@ -6,4 +6,4 @@ async function bootstrap() {
|
||||
await app.listen(3000);
|
||||
console.log(`Application is running on: ${await app.getUrl()}`);
|
||||
}
|
||||
bootstrap();
|
||||
await bootstrap();
|
||||
@@ -6,4 +6,4 @@ async function bootstrap() {
|
||||
await app.listen(3000);
|
||||
console.log(`Application is running on: ${await app.getUrl()}`);
|
||||
}
|
||||
bootstrap();
|
||||
await bootstrap();
|
||||
@@ -13,4 +13,4 @@ async function bootstrap() {
|
||||
module.hot.dispose(() => app.close());
|
||||
}
|
||||
}
|
||||
bootstrap();
|
||||
await bootstrap();
|
||||
@@ -15,4 +15,4 @@ async function bootstrap() {
|
||||
await app.listen(3000);
|
||||
console.log(`Application is running on: ${await app.getUrl()}`);
|
||||
}
|
||||
bootstrap();
|
||||
await bootstrap();
|
||||
@@ -18,4 +18,4 @@ async function bootstrap() {
|
||||
await app.listen(3000);
|
||||
console.log(`Application is running on: ${await app.getUrl()}`);
|
||||
}
|
||||
bootstrap();
|
||||
await bootstrap();
|
||||
@@ -9,4 +9,4 @@ async function bootstrap() {
|
||||
await app.listen(3000);
|
||||
console.log(`Application is running on: ${await app.getUrl()}`);
|
||||
}
|
||||
bootstrap();
|
||||
await bootstrap();
|
||||
@@ -6,4 +6,4 @@ async function bootstrap() {
|
||||
await app.listen(3000);
|
||||
console.log(`Application is running on: ${await app.getUrl()}`);
|
||||
}
|
||||
bootstrap();
|
||||
await bootstrap();
|
||||
@@ -6,4 +6,4 @@ async function bootstrap() {
|
||||
await app.listen(3000);
|
||||
console.log(`Application is running on: ${await app.getUrl()}`);
|
||||
}
|
||||
bootstrap();
|
||||
await bootstrap();
|
||||
@@ -16,4 +16,4 @@ async function bootstrap() {
|
||||
await app.listen(3000);
|
||||
console.log(`Application is running on: ${await app.getUrl()}`);
|
||||
}
|
||||
bootstrap();
|
||||
await bootstrap();
|
||||
@@ -9,4 +9,4 @@ async function bootstrap() {
|
||||
await app.listen(3000);
|
||||
console.log(`Application is running on: ${await app.getUrl()}`);
|
||||
}
|
||||
bootstrap();
|
||||
await bootstrap();
|
||||
@@ -29,4 +29,4 @@ async function bootstrap() {
|
||||
await app.listen(3000);
|
||||
console.log(`Application is running on: ${await app.getUrl()}`);
|
||||
}
|
||||
bootstrap();
|
||||
await bootstrap();
|
||||
@@ -16,4 +16,4 @@ async function bootstrap() {
|
||||
|
||||
return app.close();
|
||||
}
|
||||
bootstrap();
|
||||
await bootstrap();
|
||||
@@ -6,4 +6,4 @@ async function bootstrap() {
|
||||
await app.listen(3000);
|
||||
console.log(`Application is running on: ${await app.getUrl()}`);
|
||||
}
|
||||
bootstrap();
|
||||
await bootstrap();
|
||||
@@ -9,4 +9,4 @@ async function bootstrap() {
|
||||
await app.listen(3000);
|
||||
console.log(`Application is running on: ${await app.getUrl()}`);
|
||||
}
|
||||
bootstrap();
|
||||
await bootstrap();
|
||||
@@ -9,4 +9,4 @@ async function bootstrap() {
|
||||
await app.listen(3000);
|
||||
console.log(`Application is running on: ${await app.getUrl()}`);
|
||||
}
|
||||
bootstrap();
|
||||
await bootstrap();
|
||||
@@ -10,4 +10,4 @@ async function bootstrap() {
|
||||
console.log(`Application is running on: ${await app.getUrl()}`);
|
||||
console.log(`GraphQL Playground: ${await app.getUrl()}/graphql`);
|
||||
}
|
||||
bootstrap();
|
||||
await bootstrap();
|
||||
@@ -9,4 +9,4 @@ async function bootstrap() {
|
||||
await app.listen(3000);
|
||||
console.log(`Application is running on: ${await app.getUrl()}`);
|
||||
}
|
||||
bootstrap();
|
||||
await bootstrap();
|
||||
@@ -8,4 +8,4 @@ async function bootstrap() {
|
||||
await app.listen(3000);
|
||||
console.log(`Application is running on: ${await app.getUrl()}`);
|
||||
}
|
||||
bootstrap();
|
||||
await bootstrap();
|
||||
@@ -6,4 +6,4 @@ async function bootstrap() {
|
||||
await app.listen(3000);
|
||||
console.log(`Application is running on: ${await app.getUrl()}`);
|
||||
}
|
||||
bootstrap();
|
||||
await bootstrap();
|
||||
@@ -6,4 +6,4 @@ async function bootstrap() {
|
||||
await app.listen(3000);
|
||||
console.log(`Application is running on: ${await app.getUrl()}`);
|
||||
}
|
||||
bootstrap();
|
||||
await bootstrap();
|
||||
@@ -6,4 +6,4 @@ async function bootstrap() {
|
||||
await app.listen(3000);
|
||||
console.log(`Application is running on: ${await app.getUrl()}`);
|
||||
}
|
||||
bootstrap();
|
||||
await bootstrap();
|
||||
@@ -9,4 +9,4 @@ async function bootstrap() {
|
||||
await app.listen(3000);
|
||||
console.log(`Application is running on: ${await app.getUrl()}`);
|
||||
}
|
||||
bootstrap();
|
||||
await bootstrap();
|
||||
@@ -9,4 +9,4 @@ async function bootstrap() {
|
||||
await app.listen(3000);
|
||||
console.log(`Application is running on: ${await app.getUrl()}`);
|
||||
}
|
||||
bootstrap();
|
||||
await bootstrap();
|
||||
@@ -5,4 +5,4 @@ async function bootstrap() {
|
||||
const app = await NestFactory.create(AppModule);
|
||||
await app.listen(3000);
|
||||
}
|
||||
bootstrap();
|
||||
await bootstrap();
|
||||
@@ -5,4 +5,4 @@ async function bootstrap() {
|
||||
const app = await NestFactory.create(AppModule);
|
||||
await app.listen(3001);
|
||||
}
|
||||
bootstrap();
|
||||
await bootstrap();
|
||||
@@ -5,4 +5,4 @@ async function bootstrap() {
|
||||
const app = await NestFactory.create(AppModule);
|
||||
await app.listen(3003);
|
||||
}
|
||||
bootstrap();
|
||||
await bootstrap();
|
||||
@@ -5,4 +5,4 @@ async function bootstrap() {
|
||||
const app = await NestFactory.create(AppModule);
|
||||
await app.listen(3002);
|
||||
}
|
||||
bootstrap();
|
||||
await bootstrap();
|
||||
@@ -5,4 +5,4 @@ async function bootstrap() {
|
||||
const app = await NestFactory.create(AppModule);
|
||||
await app.listen(3002);
|
||||
}
|
||||
bootstrap();
|
||||
await bootstrap();
|
||||
@@ -5,4 +5,4 @@ async function bootstrap() {
|
||||
const app = await NestFactory.create(AppModule);
|
||||
await app.listen(3001);
|
||||
}
|
||||
bootstrap();
|
||||
await bootstrap();
|
||||
@@ -5,4 +5,4 @@ async function bootstrap() {
|
||||
const app = await NestFactory.create(AppModule);
|
||||
await app.listen(3000);
|
||||
}
|
||||
bootstrap();
|
||||
await bootstrap();
|
||||
@@ -10,4 +10,4 @@ async function bootstrap() {
|
||||
await app.listen(3000);
|
||||
console.log(`Application is running on: ${await app.getUrl()}`);
|
||||
}
|
||||
bootstrap();
|
||||
await bootstrap();
|
||||
@@ -16,4 +16,4 @@ async function bootstrap() {
|
||||
module.hot.dispose(() => app.close());
|
||||
}
|
||||
}
|
||||
bootstrap();
|
||||
await bootstrap();
|
||||
Reference in new issue
Block a user