Unverified Commit 7c8ac7d5 authored by yann300's avatar yann300 Committed by GitHub

Update index.js

parent 13ce01c5
...@@ -5,9 +5,9 @@ const merge = require('merge') ...@@ -5,9 +5,9 @@ const merge = require('merge')
const colors = require('colors') const colors = require('colors')
const DEFAULT_OPTIONS = { const DEFAULT_OPTIONS = {
protocol: "http", protocol: 'http',
host: "localhost", host: 'localhost',
port: "8088" port: '8088'
} }
module.exports = (embark) => { module.exports = (embark) => {
...@@ -46,7 +46,7 @@ module.exports = (embark) => { ...@@ -46,7 +46,7 @@ module.exports = (embark) => {
}) })
const killRemixD = sharedFolderRouter.start() const killRemixD = sharedFolderRouter.start()
const kill = () => { const kill = () => {
if(server) server.close() if (server) server.close()
embark.logger.info(colors.red('embark-remix stopped')) embark.logger.info(colors.red('embark-remix stopped'))
process.exit() process.exit()
} }
...@@ -59,9 +59,8 @@ module.exports = (embark) => { ...@@ -59,9 +59,8 @@ module.exports = (embark) => {
process.emit('SIGINT') process.emit('SIGINT')
}) })
} }
process.on('SIGINT', kill) // catch ctrl-c process.on('SIGINT', kill) // catch ctrl-c
process.on('SIGTERM', kill) // catch kill process.on('SIGTERM', kill) // catch kill
process.on('exit', killRemixD) process.on('exit', killRemixD)
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment