Authored by htoooth

add zookeeper

... ... @@ -34,6 +34,9 @@ global.utils = path.resolve('./utils');
app.locals.devEnv = app.get('env') === 'development';
app.locals.version = pkg.version;
// zookeeper设置
require('yoho-zookeeper')(config.zookeeperServer, 'pc', app.locals);
app.set('subdomain offset', 2);
app.set('view engine', '.hbs');
app.set('views', './doraemon/views');
... ...
... ... @@ -30,6 +30,7 @@ module.exports = {
activity: '//activity.yohobuy.com',
index: '//yohobuy.com'
},
zookeeperServer: '192.168.102.168:2188',
useOneapm: false,
useCache: false,
memcache: {
... ...
... ... @@ -37,9 +37,9 @@
"connect-memcached": "^0.2.0",
"cookie-parser": "^1.4.3",
"express": "^4.13.1",
"handlebars": "^4.0.5",
"express-handlebars": "^3.0.0",
"express-session": "^1.13.0",
"handlebars": "^4.0.5",
"influxdb-winston": "^1.0.1",
"lodash": "^4.13.1",
"md5": "^2.1.0",
... ... @@ -62,7 +62,8 @@
"winston": "^2.2.0",
"winston-daily-rotate-file": "^1.1.4",
"yoho-express-session": "^1.14.1",
"yoho-node-lib": "0.1.19"
"yoho-node-lib": "0.1.19",
"yoho-zookeeper": "^1.0.3"
},
"devDependencies": {
"autoprefixer": "^6.3.6",
... ...