config load immediatly and once
This commit is contained in:
parent
3e33252d06
commit
d6f647ccd2
5 changed files with 1 additions and 4 deletions
|
@ -1,5 +1,4 @@
|
|||
const config = require('./server/config.js')
|
||||
config.load()
|
||||
const minifyTheme = require('minify-css-string').default
|
||||
|
||||
const isDev = (process.env.NODE_ENV !== 'production')
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
let db
|
||||
function _initializeDB () {
|
||||
const config = require('../config')
|
||||
config.load()
|
||||
config.log_level = 'error'
|
||||
db = require('../api/models/index')
|
||||
return db.initialize()
|
||||
|
|
|
@ -37,4 +37,5 @@ let config = {
|
|||
}
|
||||
}
|
||||
|
||||
config.load()
|
||||
module.exports = config
|
|
@ -1,4 +1,3 @@
|
|||
// needed by sequelize
|
||||
const config = require('./config')
|
||||
config.load()
|
||||
module.exports = config.db
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
const config = require('../server/config')
|
||||
config.load()
|
||||
|
||||
const initialize = {
|
||||
// close connections/port/unix socket
|
||||
|
|
Loading…
Reference in a new issue