This commit is contained in:
les
2019-08-25 14:34:26 +02:00
parent 0de68b5054
commit 0eb41a1e12
13 changed files with 48 additions and 105 deletions

View File

@@ -1,4 +1,3 @@
//#!/bin/env node
const { Nuxt, Builder } = require('nuxt')
// Import and Set Nuxt.js options
@@ -22,7 +21,9 @@ async function main() {
// close connections/port/unix socket
function shutdown() {
nuxt.close(() => {
nuxt.close(async () => {
const db = require('./api/models')
await db.sequelize.close()
process.exit()
})
}