minor
This commit is contained in:
@@ -7,8 +7,7 @@ export default function () {
|
|||||||
TaskManager = require('../server/taskManager').TaskManager
|
TaskManager = require('../server/taskManager').TaskManager
|
||||||
TaskManager.start()
|
TaskManager.start()
|
||||||
}
|
}
|
||||||
const msg = `Listen on ${config.server.host}:${config.server.port} , visit me here => ${config.baseurl}`
|
log.info(`Listen on ${config.server.host}:${config.server.port}`)
|
||||||
log.info(msg)
|
|
||||||
|
|
||||||
// close connections/port/unix socket
|
// close connections/port/unix socket
|
||||||
async function shutdown () {
|
async function shutdown () {
|
||||||
@@ -23,5 +22,5 @@ export default function () {
|
|||||||
process.on('SIGTERM', shutdown)
|
process.on('SIGTERM', shutdown)
|
||||||
process.on('SIGINT', shutdown)
|
process.on('SIGINT', shutdown)
|
||||||
}
|
}
|
||||||
this.nuxt.hook('ready', start)
|
this.nuxt.hook('listen', start)
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user