add new server plugin

Signed-off-by: Andrey Platov <andrey@hardcoreeng.com>
This commit is contained in:
Andrey Platov 2021-09-28 12:18:32 +02:00
parent b6f4a3c1fa
commit 31760542c3
No known key found for this signature in database
GPG Key ID: C8787EFEB4B64AF0
2 changed files with 4 additions and 0 deletions

View File

@ -32,6 +32,8 @@
"@anticrm/server-ws": "~0.6.11", "@anticrm/server-ws": "~0.6.11",
"@anticrm/server-chunter": "~0.6.1", "@anticrm/server-chunter": "~0.6.1",
"@anticrm/server-chunter-resources": "~0.6.0", "@anticrm/server-chunter-resources": "~0.6.0",
"@anticrm/server-recruit": "~0.6.0",
"@anticrm/server-recruit-resources": "~0.6.0",
"@anticrm/mongo": "~0.6.1", "@anticrm/mongo": "~0.6.1",
"@anticrm/elastic": "~0.6.0" "@anticrm/elastic": "~0.6.0"
} }

View File

@ -23,12 +23,14 @@ import type { DbConfiguration } from '@anticrm/server-core'
import { addLocation } from '@anticrm/platform' import { addLocation } from '@anticrm/platform'
import { serverChunterId } from '@anticrm/server-chunter' import { serverChunterId } from '@anticrm/server-chunter'
import { serverRecruitId } from '@anticrm/server-recruit'
/** /**
* @public * @public
*/ */
export async function start (dbUrl: string, fullTextUrl: string, port: number, host?: string): Promise<void> { export async function start (dbUrl: string, fullTextUrl: string, port: number, host?: string): Promise<void> {
addLocation(serverChunterId, () => import('@anticrm/server-chunter-resources')) addLocation(serverChunterId, () => import('@anticrm/server-chunter-resources'))
addLocation(serverRecruitId, () => import('@anticrm/server-recruit-resources'))
startJsonRpc((workspace: string) => { startJsonRpc((workspace: string) => {
const conf: DbConfiguration = { const conf: DbConfiguration = {