chore: restore FOSS startup process (#35198)
parent
67ae288668
commit
943155649b
@ -1,2 +0,0 @@ |
||||
export { startLicense } from '../ee/app/license/server/startup'; |
||||
export { registerEEBroker } from '../ee/server'; |
@ -1,3 +0,0 @@ |
||||
// This file is used in FOSS builds of Rocket.Chat to replace the default ee.ts file with mocked functions
|
||||
export const startLicense = async () => undefined; |
||||
export const registerEEBroker = async () => undefined; |
@ -0,0 +1,19 @@ |
||||
import { startLicense } from './ee/app/license/server/startup'; |
||||
import { registerEEBroker } from './ee/server'; |
||||
import { startFederationService } from './ee/server/startup/services'; |
||||
|
||||
const loadBeforeLicense = async () => { |
||||
await registerEEBroker(); |
||||
}; |
||||
|
||||
const loadAfterLicense = async () => { |
||||
await startFederationService(); |
||||
}; |
||||
|
||||
export const startRocketChat = async () => { |
||||
await loadBeforeLicense(); |
||||
|
||||
await startLicense(); |
||||
|
||||
await loadAfterLicense(); |
||||
}; |
@ -0,0 +1,4 @@ |
||||
// This file is used in FOSS builds of Rocket.Chat to replace the default startRocketChat.ts file, removing references to licensed code.
|
||||
export const startRocketChat = async () => { |
||||
// Nothing to do here
|
||||
}; |
Loading…
Reference in new issue