aboutsummaryrefslogtreecommitdiff
path: root/src/server/index.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/index.ts')
-rw-r--r--src/server/index.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/server/index.ts b/src/server/index.ts
index 0a5b4afae..287725537 100644
--- a/src/server/index.ts
+++ b/src/server/index.ts
@@ -25,9 +25,12 @@ import { Logger } from "./ProcessFactory";
import { yellow } from "colors";
import { Session } from "./Session/session";
import { isMaster } from "cluster";
+import { execSync } from "child_process";
if (isMaster) {
- Session.initializeMaster();
+ Session.initializeMaster().then(repl => {
+ repl.registerCommand("pull", [], () => execSync("git pull", { stdio: ["ignore", "inherit", "inherit"] }));
+ });
} else {
Session.initializeWorker(launch);
}