better initialization

This commit is contained in:
lesion
2022-05-20 14:01:47 +02:00
parent c5cb207a94
commit 25cedb5778
3 changed files with 7 additions and 2 deletions

View File

@@ -52,7 +52,9 @@ module.exports = function () {
await sequelize.close()
process.off('SIGTERM', shutdown)
process.off('SIGINT', shutdown)
nuxt.close()
if (nuxt) {
nuxt.close()
}
process.exit()
}
process.on('SIGTERM', shutdown)