Authored by 毕凯

Merge branch 'develop' of git.yoho.cn:fe/yohobuy-node into develop

@@ -41,7 +41,7 @@ module.exports = { @@ -41,7 +41,7 @@ module.exports = {
41 udp: { // send by udp 41 udp: { // send by udp
42 level: 'debug', // logger level 42 level: 'debug', // logger level
43 host: '192.168.102.162', // influxdb host 43 host: '192.168.102.162', // influxdb host
44 - port: '4444'// influxdb port 44 + port: '4444' // influxdb port
45 }, 45 },
46 console: { 46 console: {
47 level: 'debug', 47 level: 'debug',
@@ -71,6 +71,13 @@ if (isProduction) { @@ -71,6 +71,13 @@ if (isProduction) {
71 Object.assign(module.exports, { 71 Object.assign(module.exports, {
72 appName: 'www.yohobuy.com for test', 72 appName: 'www.yohobuy.com for test',
73 useOneapm: true, 73 useOneapm: true,
74 - useCache: true 74 + useCache: true,
  75 + memcache: {
  76 + master: ['127.0.0.1:12111'],
  77 + slave: ['127.0.0.1:12112'],
  78 + session: ['127.0.0.1:12111'],
  79 + timeout: 1000,
  80 + retries: 0
  81 + }
75 }); 82 });
76 -} 83 +}
  1 +{
  2 + "apps": [
  3 + {
  4 + "name": "yohobuy-node",
  5 + "script": "app.js",
  6 + "instances": "max",
  7 + "exec_mode": "cluster",
  8 + "env": {
  9 + "PORT": 6002
  10 + }
  11 + }
  12 + ]
  13 +}