mirror of
https://github.com/RocketChat/Rocket.Chat.git
synced 2025-12-28 14:58:55 +00:00
Co-authored-by: Marcos Defendi <marcos.defendi@rocket.chat> Co-authored-by: Debdut Chakraborty <debdut.chakraborty@rocket.chat>
32 lines
910 B
TypeScript
32 lines
910 B
TypeScript
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();
|