mirror of
https://github.com/benjamin-wilson/public-pool.git
synced 2026-09-29 09:05:06 -07:00
17 lines
432 B
TypeScript
17 lines
432 B
TypeScript
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();
|