mirror of
https://github.com/benjamin-wilson/public-pool.git
synced 2026-09-29 17:15:03 -07:00
Split maintenance duties from notifier
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
import { NestFactory } from '@nestjs/core';
|
||||
|
||||
import { MaintenanceModule } from './maintenance.module';
|
||||
|
||||
async function bootstrap(): Promise<void> {
|
||||
process.env.MASTER = 'true';
|
||||
process.env.API_ENABLED = 'false';
|
||||
|
||||
const application = await NestFactory.createApplicationContext(
|
||||
MaintenanceModule,
|
||||
);
|
||||
application.enableShutdownHooks();
|
||||
console.log('Maintenance services started');
|
||||
}
|
||||
|
||||
void bootstrap();
|
||||
Reference in New Issue
Block a user