From 7c8ac7d569aaef2dd440dd9d99630f102aca8d56 Mon Sep 17 00:00:00 2001 From: yann300 Date: Fri, 10 May 2019 12:18:54 +0200 Subject: [PATCH] Update index.js --- embark/index.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/embark/index.js b/embark/index.js index add2824eea..a742fad09e 100644 --- a/embark/index.js +++ b/embark/index.js @@ -5,9 +5,9 @@ const merge = require('merge') const colors = require('colors') const DEFAULT_OPTIONS = { - protocol: "http", - host: "localhost", - port: "8088" + protocol: 'http', + host: 'localhost', + port: '8088' } module.exports = (embark) => { @@ -46,7 +46,7 @@ module.exports = (embark) => { }) const killRemixD = sharedFolderRouter.start() const kill = () => { - if(server) server.close() + if (server) server.close() embark.logger.info(colors.red('embark-remix stopped')) process.exit() } @@ -59,9 +59,8 @@ module.exports = (embark) => { process.emit('SIGINT') }) } - + process.on('SIGINT', kill) // catch ctrl-c process.on('SIGTERM', kill) // catch kill process.on('exit', killRemixD) - }