We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c5384d7 commit 4f76ccaCopy full SHA for 4f76cca
1 file changed
index.js
@@ -1,3 +1,5 @@
1
+const shell = require("child_process");
2
+
3
// Load cli
4
let cli = require("./lib/cli")();
5
let config = new (require("./lib/config"))();
@@ -16,3 +18,15 @@ catch (ex) {
16
18
console.log("Could not load config.");
17
19
process.exit();
20
}
21
22
+// Start the engine
23
24
+/// Check for input server command
25
+if (config.input && config.input.directory && config.input.runcmd) {
26
27
+ // Run the command
28
+ console.log("Starting server...");
29
+ let cmd = "cd " + config.input.directory + " && " + config.input.runcmd;
30
+ shell.execSync(cmd);
31
32
+}
0 commit comments