From 6c76e7ba65840312835fd119f178b8b7c52e92ab Mon Sep 17 00:00:00 2001 From: lesion Date: Fri, 20 May 2022 13:07:32 +0200 Subject: [PATCH] run cohort migration on starter / test db --- server/initialize.server.js | 9 +++++---- tests/seeds/starter.sqlite | Bin 159744 -> 172032 bytes 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/server/initialize.server.js b/server/initialize.server.js index bfc35b4e..23768e76 100644 --- a/server/initialize.server.js +++ b/server/initialize.server.js @@ -1,7 +1,6 @@ module.exports = function () { const config = require('../server/config') - config.load() const log = require('../server/log') const settingsController = require('./api/controller/settings') const db = require('./api/models/index') @@ -10,7 +9,7 @@ module.exports = function () { dayjs.extend(timezone) async function start (nuxt) { - + config.load() if (config.status == 'READY') { await db.initialize() } else { @@ -20,6 +19,7 @@ module.exports = function () { dialect: process.env.GANCIO_DB_DIALECT, storage: process.env.GANCIO_DB_STORAGE, host: process.env.GANCIO_DB_HOST, + port: process.env.GANCIO_DB_PORT, database: process.env.GANCIO_DB_DATABASE, username: process.env.GANCIO_DB_USERNAME, password: process.env.GANCIO_DB_PASSWORD, @@ -48,12 +48,13 @@ 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) process.on('SIGINT', shutdown) } - return start(this.nuxt) } diff --git a/tests/seeds/starter.sqlite b/tests/seeds/starter.sqlite index 052d7ba902b10de444832f49aa383eeb15ece111..68a892cc91e5a40f9706f023efef6d73e3f42e55 100644 GIT binary patch delta 538 zcmZp8z}awsYl5_34g&*&77)XL*+d;<#+;1_OZb`9xVBGb7w}}^y3DnGbD%&nmxYuX zldX|~k&%I^p^>4bsimp0ZdzteNotW^RSikzu|xo&cPMt)HVP;T>kDN$CSd6Ooy zD*(+~&ov2Xo*kE!46`jGF7wpTBvA}hZ9b#5{fri)MXHJbLoNgJN2a4pT@34(g84KU za(SB*#^o#WL3(+vt)KN&t zEDp&pKo--~HD?odl%9NnO+pZAY`h_qp}9S08e=;OR z7DFj5RL4L>CpU1&r~$2o80eXjpa67bIqOh68;153l*^izZ delta 214 zcmZoTz}4`8bAq&B1_J|wIuOHv$wVDv#*B>#OZb^pxZY1@7x3IHG+{p1=J!&ftU!@7 zli3wKHwzlna5bON+I~ih(IQoamm!yd`6JU&rY?qcOu>8_47t2lxJ|jwv*mEih$_qjMCFt rW-?k&KR1gpa(m7+#uz3h#{TK2W-y+fti{PQS&nnd_Rv|3tFHn8)l5W!