diff options
author | Sam Wilkins <samwilkins333@gmail.com> | 2020-10-15 11:54:46 -0700 |
---|---|---|
committer | Sam Wilkins <samwilkins333@gmail.com> | 2020-10-15 11:54:46 -0700 |
commit | b19972afc64bb9029b78c633e1841988af76adab (patch) | |
tree | 310d1352b309b0f1bc47578a8507b9b54a82376b /src/server/index.ts | |
parent | 377d5c987728c2678ab38565328f1f7ad9f3d135 (diff) |
With a MONITORED=true in .env, this should now work
Diffstat (limited to 'src/server/index.ts')
-rw-r--r-- | src/server/index.ts | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/server/index.ts b/src/server/index.ts index c4e6be8a2..9687c3b23 100644 --- a/src/server/index.ts +++ b/src/server/index.ts @@ -23,6 +23,7 @@ import { Logger } from "./ProcessFactory"; import RouteManager, { Method, PublicHandler } from './RouteManager'; import RouteSubscriber from './RouteSubscriber'; import initializeServer, { resolvedPorts } from './server_Initialization'; +import { DashSessionAgent } from "./DashSession/DashSessionAgent"; export const AdminPriviliges: Map<string, boolean> = new Map(); export const onWindows = process.platform === "win32"; @@ -186,9 +187,9 @@ export async function launchServer() { * log the output of the server process, so it's not ideal for development. * So, the 'else' clause is exactly what we've always run when executing npm start. */ -// if (process.env.RELEASE) { -// (sessionAgent = new DashSessionAgent()).launch(); -// } else { (Database.Instance as Database.Database).doConnect(); -launchServer(); -// } +if (process.env.MONITORED) { + (sessionAgent = new DashSessionAgent()).launch(); +} else { + launchServer(); +} |