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/main.ts

31 lines
910 B

import './tracing';
import './models';
/**
* ./settings uses top level await, in theory the settings creation
* and the startup should be done in parallel
*/
import './settings';
import { configureServer } from './configuration';
import { registerServices } from './services/startup';
import { startup } from './startup';
import { startRestAPI } from '../app/api/server/api';
import { settings } from '../app/settings/server';
import { startupApp } from '../ee/server';
import { startRocketChat } from '../startRocketChat';
import './routes';
import '../app/lib/server/startup';
import './importPackages';
import './methods';
import './publications';
import '../lib/oauthRedirectUriServer';
import './lib/pushConfig';
import './features/EmailInbox/index';
await Promise.all([configureServer(settings), registerServices(), startup()]);
await startRocketChat();
await startupApp();
await startRestAPI();