The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/apps/meteor/server/startup/index.ts

25 lines
712 B

import './appcache';
import './callbacks';
import { startCronJobs } from './cron';
import './initialData';
import './serverRunning';
import './coreApps';
import { generateFederationKeys } from './generateKeys';
import './presenceTroubleshoot';
import '../hooks';
import '../lib/rooms/roomTypes';
import '../lib/settingsRegenerator';
import { performMigrationProcedure } from './migrations';
import { isRunningMs } from '../lib/isRunningMs';
export const startup = async () => {
await performMigrationProcedure();
await generateFederationKeys();
setImmediate(() => startCronJobs());
// only starts network broker if running in micro services mode
if (!isRunningMs()) {
require('./localServices');
}
};