dw_yinsong 5 éve
szülő
commit
bc4941f71d
2 módosított fájl, 2 hozzáadás és 77 törlés
  1. 0 76
      tools/config.js.bak
  2. 2 1
      tools/package.json

+ 0 - 76
tools/config.js.bak

@@ -1,76 +0,0 @@
-const RedisConf = {
-    R1 : {
-        port: 6380,
-        host: "61.160.36.19",
-        password: "33fa134e11b",
-        db: 5
-    }
-}
-
-const CommonConf = {
-
-}
-
-/**
- * 测试环境MongoDB
- */
-const MongoConf = {
-    R1 : {
-        port: 27017,
-        host: "61.147.187.176",
-        username: "ojiatest",
-        password: "ojia305",
-        dbname: "taptapstar_home"
-    }
-}
-
-/**
- * 正式环境MongoDB复制集
- */
-const ReplSetConf = {
-    R1 : {
-        servers: [
-            "58.215.52.59:10002",
-            "58.215.52.21:10003",
-            "14.215.104.240:10002"
-        ],
-        username: "taptapstar_rw",
-        password: "o890usVM1e0",
-        replicaSet: "taptapstarmongo",
-        dbname: "taptapstar_home"
-    }
-}
-
-const QQReplSetConf = {
-    R1 : {
-        servers: [
-            "58.215.52.59:10003",
-            "58.215.52.21:10002",
-            "14.215.104.240:10003"
-        ],
-        username: "taptapstarqq_mongo_rw",
-        password: "gW0CxPhL6I56",
-        replicaSet: "taptapstarqqmongo",
-        dbname: "taptapstarqq_mongo"
-    }
-}
-
-const HLReplSetConf = {
-    R1 : {
-		port: 10003,
-        host: "14.215.104.240",
-        username: "headlines_admin",
-        password: "mtB78u3890x1",
-        dbname: "taptapstar_home_headlines"
-       
-    }
-}
-
-module.exports = {
-    RedisConf,
-    CommonConf,
-    MongoConf,
-    ReplSetConf,
-	QQReplSetConf,
-	HLReplSetConf
-}

+ 2 - 1
tools/package.json

@@ -11,7 +11,8 @@
     "mongo:prod": "cross-env NODE_ENV=production node mongo.js",
     "mongo:qq": "cross-env NODE_ENV=qq node mongo.js",
     "mongo:headlines": "cross-env NODE_ENV=headlines node mongo.js",
-    "local": "node local.js"
+    "local": "node local.js",
+    "headlines_local": "node headlines_local.js"
   },
   "author": "",
   "license": "ISC",