@vessl-ai/mcpctl-control-plane
Version:
Vessl MCP Control Plane service for managing distributed jobs.
24 lines • 887 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.bootstrapControlPlane = bootstrapControlPlane;
const config_1 = require("@nestjs/config");
const core_1 = require("@nestjs/core");
const app_module_1 = require("./app.module");
async function bootstrapControlPlane() {
const app = await core_1.NestFactory.create(app_module_1.AppModule);
const configService = app.get(config_1.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