@vessl-ai/mcpctl-control-plane
Version:
Vessl MCP Control Plane service for managing distributed jobs.
20 lines • 717 B
JavaScript
import { ConfigService } from '@nestjs/config';
import { NestFactory } from '@nestjs/core';
import { AppModule } from './app.module';
export async function bootstrapControlPlane() {
const app = await NestFactory.create(AppModule);
const configService = app.get(ConfigService);
const appConfig = configService.get('app');
if (!appConfig) {
throw new Error('App config not found');
}
const port = appConfig.port;
const ipAddress = appConfig.exposeIPAddress;
await app.listen(port, ipAddress);
const url = await app.getUrl();
console.log(`Control plane listening at ${url}`);
}
if (require.main === module) {
bootstrapControlPlane();
}
//# sourceMappingURL=main.js.map