This commit is contained in:
lesion
2021-10-21 12:23:19 +02:00
parent 81f241dda5
commit 868d08398b

View File

@@ -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)
} }