This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

semble / src / index.ts
812 B 23 lines
1import { configService } from './shared/infrastructure/config'; 2import { AppProcess } from './shared/infrastructure/processes/AppProcess'; 3import { FeedWorkerProcess } from './shared/infrastructure/processes/FeedWorkerProcess'; 4 5async function main() { 6 const appProcess = new AppProcess(configService); 7 8 // Start the app process 9 await appProcess.start(); 10 11 // Start feed worker in the same process if using in-memory events 12 const useInMemoryEvents = process.env.USE_IN_MEMORY_EVENTS === 'true'; 13 if (useInMemoryEvents) { 14 console.log('Starting feed worker in the same process...'); 15 const feedWorkerProcess = new FeedWorkerProcess(configService); 16 await feedWorkerProcess.start(); 17 } 18} 19 20main().catch((error) => { 21 console.error('Failed to start application:', error); 22 process.exit(1); 23});