mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
16 lines
355 B
TypeScript
16 lines
355 B
TypeScript
// Starts up applications required to run before the HTTP server is on.
|
|
|
|
import { Conf } from '@/config.ts';
|
|
import { seedZapSplits } from '@/utils/zap-split.ts';
|
|
import { cron } from '@/cron.ts';
|
|
import { startFirehose } from '@/firehose.ts';
|
|
|
|
if (Conf.firehoseEnabled) {
|
|
startFirehose();
|
|
}
|
|
|
|
if (Conf.cronEnabled) {
|
|
cron();
|
|
}
|
|
|
|
await seedZapSplits();
|