postiz-app/apps/orchestrator/src/main.ts
2026-04-01 20:32:13 +02:00

22 lines
704 B
TypeScript

import { initializeSentry } from '@gitroom/nestjs-libraries/sentry/initialize.sentry';
initializeSentry('orchestrator', true);
import 'source-map-support/register';
import dayjs from 'dayjs';
import utc from 'dayjs/plugin/utc';
dayjs.extend(utc);
import { NestFactory } from '@nestjs/core';
import { AppModule } from '@gitroom/orchestrator/app.module';
import * as dns from 'node:dns';
dns.setDefaultResultOrder('ipv4first');
async function bootstrap() {
const app = await NestFactory.create(AppModule);
app.enableShutdownHooks();
const port = process.env.ORCHESTRATOR_PORT || 3002;
await app.listen(port);
console.log(`Orchestrator health check listening on port ${port}`);
}
bootstrap();