diff options
author | Tyler Schicke <tschicke@gmail.com> | 2020-01-07 23:35:14 -0800 |
---|---|---|
committer | Tyler Schicke <tschicke@gmail.com> | 2020-01-07 23:57:32 -0800 |
commit | 786d25a4f8db1db8795f04a17fba392636e5f891 (patch) | |
tree | 6973a067fda8e79a14e70ee8fcd4685752fb0bb0 /src/server/Session/session.ts | |
parent | 23d5f6b28a93a3c66c0bd7776d6a42073cc55afb (diff) |
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
Diffstat (limited to 'src/server/Session/session.ts')
-rw-r--r-- | src/server/Session/session.ts | 5 |
1 files changed, 3 insertions, 2 deletions
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 +} |