- 添加 niucloud-php 对标项目用于业务逻辑参考 - 添加 niucloud-java 对标项目用于架构设计参考 - 完善 NestJS 健康检查模块 - 更新 Docker 启动脚本 - 优化模块导入配置
17 lines
523 B
TypeScript
17 lines
523 B
TypeScript
import { NestFactory } from '@nestjs/core';
|
|
import { AppModule } from './app.module';
|
|
// import { SwaggerService } from '@wwjCommon/swagger/swagger.service';
|
|
|
|
async function bootstrap() {
|
|
const app = await NestFactory.create(AppModule);
|
|
|
|
// 暂时禁用 Swagger 文档
|
|
// const swaggerService = app.get(SwaggerService);
|
|
// swaggerService.setupSwagger(app);
|
|
|
|
const port = parseInt(process.env.APP_PORT || '3000');
|
|
console.log(`Application is starting on port: ${port}`);
|
|
await app.listen(port);
|
|
}
|
|
bootstrap();
|