config.js
422 Bytes
'use strict';
import path from 'path';
const env = process.env.NODE_ENV || 'development';
const defaults = {
port: 9000,
buildDir: path.normalize(__dirname + '/../packages/'),
dbDir: path.normalize(__dirname + '/../db'),
influxdb: {
host: 'influxdblog.web.yohoops.org',
port: 4444
}
};
const specific = {
development: {},
test: {},
production: {},
};
export default Object.assign(defaults, specific[env]);