aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2020-10-29 09:29:24 -0400
committerGitHub <noreply@github.com>2020-10-29 09:29:24 -0400
commit964965807a0f18ecf580b463a0c1d6f30efdde7b (patch)
treedb2fcc2d682e8e3292fd8bdba3515ff549f9204b
parent74e080fd58c681a549a8e369202096bd456b6e6e (diff)
parent3e7012687b12f3d973169c6d84ca2d57bf79cbd9 (diff)
Merge pull request #919 from browngraphicslab/restored_server_monitor
Startup script
-rw-r--r--package.json2
-rw-r--r--src/server/DashSession/Session/agents/server_worker.ts4
-rw-r--r--startup.sh4
3 files changed, 7 insertions, 3 deletions
diff --git a/package.json b/package.json
index ecbadcb92..13849c0f3 100644
--- a/package.json
+++ b/package.json
@@ -263,4 +263,4 @@
"xoauth2": "^1.2.0",
"xregexp": "^4.3.0"
}
-} \ No newline at end of file
+}
diff --git a/src/server/DashSession/Session/agents/server_worker.ts b/src/server/DashSession/Session/agents/server_worker.ts
index afa5fc68d..6a19bfa5d 100644
--- a/src/server/DashSession/Session/agents/server_worker.ts
+++ b/src/server/DashSession/Session/agents/server_worker.ts
@@ -113,8 +113,8 @@ export class ServerWorker extends IPCMessageReceiver {
this.shouldServerBeResponsive = false;
// communicates via IPC to the master thread that it should dispatch a crash notification email
const { name, message, stack } = error;
- const deconstructed_error: ErrorLike = { name, message, stack };
- this.emit(Monitor.IntrinsicEvents.CrashDetected, { error: deconstructed_error });
+ const errorLike: ErrorLike = { name, message, stack };
+ this.emit(Monitor.IntrinsicEvents.CrashDetected, { error: errorLike });
await this.executeExitHandlers(error);
// notify master thread (which will log update in the console) of crash event via IPC
this.lifecycleNotification(red(`crash event detected @ ${new Date().toUTCString()}`));
diff --git a/startup.sh b/startup.sh
new file mode 100644
index 000000000..6554b5666
--- /dev/null
+++ b/startup.sh
@@ -0,0 +1,4 @@
+#!/bin/bash
+cd /c/Users/dash/Desktop/Dash-Web # cd /c/Users/dash/Documents/Dash-Web instead for dash-release
+npm run start-release
+# works for browndash \ No newline at end of file