ditto/packages/ditto/startup.ts
2025-02-19 16:19:16 -06:00

12 lines
276 B
TypeScript

// Starts up applications required to run before the HTTP server is on.
import { Conf } from '@/config.ts';
import { cron } from '@/cron.ts';
import { startFirehose } from '@/firehose.ts';
if (Conf.firehoseEnabled) {
startFirehose();
}
if (Conf.cronEnabled) {
cron();
}