diff --git a/lib/dashboard/repl.js b/lib/dashboard/repl.js index 44848db4..f416bc94 100644 --- a/lib/dashboard/repl.js +++ b/lib/dashboard/repl.js @@ -6,10 +6,14 @@ class REPL { } start(done) { - repl.start({ + let replServer = repl.start({ prompt: "Embark (" + this.env + ") > " }); + replServer.on('exit', () => { + process.exit(); + }); + done(); } }