mirror of
https://github.com/aljazceru/ditto.git
synced 2026-01-27 09:14:20 +01:00
feat: create startup file
This commit is contained in:
16
src/startup.ts
Normal file
16
src/startup.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
// Starts up applications required to run before the HTTP server is on.
|
||||
|
||||
import { Conf } from '@/config.ts';
|
||||
import { createZapSplitsIfNotExists } from '@/utils/zap-split.ts';
|
||||
import { cron } from '@/cron.ts';
|
||||
import { startFirehose } from '@/firehose.ts';
|
||||
|
||||
if (Conf.firehoseEnabled) {
|
||||
startFirehose();
|
||||
}
|
||||
|
||||
if (Conf.cronEnabled) {
|
||||
cron();
|
||||
}
|
||||
|
||||
await createZapSplitsIfNotExists();
|
||||
Reference in New Issue
Block a user