Commit ae40f905 authored by Sam Galson's avatar Sam Galson

refactor config

parent 524070e8
module.exports = {
'pubsweet-server': {
dbPath: 'PUBSWEET_DB'
},
NODE_ENV: 'NODE_ENV'
}
......@@ -6,7 +6,7 @@ const logger = require('winston')
module.exports = {
'pubsweet-server': {
dbPath: process.env.PUBSWEET_DB || path.join(__dirname, '..', 'api', 'db'),
dbPath: path.join(__dirname, '..', 'api', 'db', 'dev'),
logger,
API_ENDPOINT: '/api',
sse: process.env.PUBSWEET_SSE
......@@ -40,5 +40,6 @@ module.exports = {
source: Joi.any(),
presentation: Joi.string()
}
}
},
NODE_ENV: 'dev'
}
const config = require('./shared.js')
module.exports = config
module.exports = {}
const config = require('./shared.js')
const path = require('path')
module.exports = config
module.exports = {
'pubsweet-server': {
dbPath: path.join(__dirname, '..', 'api', 'db', 'production')
}
}
const config = require('./shared.js')
const path = require('path')
module.exports = config
module.exports = {
'pubsweet-server': {
dbPath: path.join(__dirname, '..', 'api', 'db', 'test')
}
}
Markdown is supported
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