From 786d25a4f8db1db8795f04a17fba392636e5f891 Mon Sep 17 00:00:00 2001 From: Tyler Schicke Date: Tue, 7 Jan 2020 23:35:14 -0800 Subject: Various features/fixes to allow running on Linux w/o MongoDB or Solr - Added new launch config option for chromium - Changed port for TypeScript server debugger to account for worker process - Updated packages to versions that work with current node/npm - Update IDatabase interface - Updated MemoryDatabase to work properly with Dash - Added some workarounds for in memory database as they currently don't support users, so you must be guest, which means the guest needs to be able to do things it usually can't - Added environment variable to disable search. This doesn't fully disable search yet, but it is enough to not throw major errors when Solr isn't running - Added logic to support using an in memory DB instead of MongoDB --- src/server/Session/session.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/server/Session') diff --git a/src/server/Session/session.ts b/src/server/Session/session.ts index b22b6404d..a3e6c4e16 100644 --- a/src/server/Session/session.ts +++ b/src/server/Session/session.ts @@ -264,7 +264,8 @@ export namespace Session { serverPort: ports.server, socketPort: ports.socket, pollingIntervalSeconds, - session_key: key + session_key: key, + DB: process.env.DB }); log(cyan(`spawned new server worker with process id ${activeWorker.process.pid}`)); // an IPC message handler that executes actions on the master thread when prompted by the active worker @@ -435,4 +436,4 @@ export namespace Session { }; } -} \ No newline at end of file +} -- cgit v1.2.3-70-g09d2