mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-29 13:05:08 +02:00
Introduce DbAdapter (#61)
Signed-off-by: Andrey Platov <andrey@hardcoreeng.com>
This commit is contained in:
@@ -15,7 +15,8 @@
|
||||
//
|
||||
|
||||
import { start as startJsonRpc } from '@anticrm/server-ws'
|
||||
import { createStorage } from '@anticrm/dev-storage'
|
||||
import { createInMemoryAdapter } from '@anticrm/dev-storage'
|
||||
import { createServerStorage } from '@anticrm/server-core'
|
||||
|
||||
import { addLocation } from '@anticrm/platform'
|
||||
import { serverChunterId } from '@anticrm/server-chunter'
|
||||
@@ -26,5 +27,5 @@ import { serverChunterId } from '@anticrm/server-chunter'
|
||||
export async function start (port: number, host?: string): Promise<void> {
|
||||
addLocation(serverChunterId, () => import('@anticrm/server-chunter-resources'))
|
||||
|
||||
startJsonRpc(() => createStorage(), port, host)
|
||||
startJsonRpc(() => createServerStorage(createInMemoryAdapter, '', ''), port, host)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user