config.js 429 Bytes
'use strict';

const path = require('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: {},
};

module.exports = Object.assign(defaults, specific[env]);