This commit is contained in:
les
2020-02-16 21:04:46 +01:00
parent 9c151ee963
commit bd30a3dc74
3 changed files with 8 additions and 3 deletions

View File

@@ -19,7 +19,12 @@ async function main () {
} else {
await nuxt.ready()
}
nuxt.listen()
try {
await nuxt.listen()
} catch (e) {
consola.error(e.toString())
return
}
consola.info('Listen on %s:%d , visit me here => %s', config.server.host, config.server.port, config.baseurl)
TaskManager.start()