Introduce config module

This commit is contained in:
Akihiko Odaki
2018-04-02 13:15:53 +09:00
parent 5b9f3701f5
commit 3fb6834f7d
50 changed files with 213 additions and 208 deletions

View File

@ -1,5 +1,5 @@
import * as elasticsearch from 'elasticsearch';
import config from '../conf';
import config from '../config';
// Init ElasticSearch connection
const client = new elasticsearch.Client({

View File

@ -1,4 +1,4 @@
import config from '../conf';
import config from '../config';
const u = config.mongodb.user ? encodeURIComponent(config.mongodb.user) : null;
const p = config.mongodb.pass ? encodeURIComponent(config.mongodb.pass) : null;

View File

@ -1,5 +1,5 @@
import * as redis from 'redis';
import config from '../conf';
import config from '../config';
export default redis.createClient(
config.redis.port,