mirror of
https://activitypub.software/TransFem-org/Sharkey.git
synced 2024-12-28 09:00:18 +01:00
restore functionality of MK_NO_DAEMONS
option
This commit is contained in:
parent
ba827f95df
commit
57deef320e
1 changed files with 3 additions and 0 deletions
|
@ -12,6 +12,7 @@ import { QueueStatsService } from '@/daemons/QueueStatsService.js';
|
|||
import { ServerStatsService } from '@/daemons/ServerStatsService.js';
|
||||
import { ServerService } from '@/server/ServerService.js';
|
||||
import { MainModule } from '@/MainModule.js';
|
||||
import { envOption } from '@/env.js';
|
||||
|
||||
export async function server() {
|
||||
const app = await NestFactory.createApplicationContext(MainModule, {
|
||||
|
@ -23,6 +24,8 @@ export async function server() {
|
|||
|
||||
if (process.env.NODE_ENV !== 'test') {
|
||||
app.get(ChartManagementService).start();
|
||||
}
|
||||
if (!envOption.noDaemons) {
|
||||
app.get(QueueStatsService).start();
|
||||
app.get(ServerStatsService).start();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue