mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
feat: create startup file
This commit is contained in:
parent
86874e3a08
commit
1698c1b19b
1 changed files with 16 additions and 0 deletions
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();
|
||||
Loading…
Add table
Reference in a new issue