Skip to content
Snippets Groups Projects
Commit 91c85aa4 authored by Sam Galson's avatar Sam Galson
Browse files

Merge branch 'fix/config' into 'master'

follow node-config submodule pattern

See merge request !9
parents 14af141e fc6f804b
No related branches found
No related tags found
No related merge requests found
process.env.SUPPRESS_NO_CONFIG_WARNING = true
const config = require('config')
const validations = require('./validations')
const { get } = require('lodash/fp')
const loggerFromConfig = get('pubsweet-server.logger', config)
config.util.setModuleDefaults('pubsweet-server.logger', loggerFromConfig)
let logger = validations.validateConfig(loggerFromConfig)
let configured = Boolean(logger)
......
'use strict'
process.env.ALLOW_CONFIG_MUTATIONS = true
process.env.SUPPRESS_NO_CONFIG_WARNING = true
let config = require('config')
config['pubsweet-server'] = { }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment