Browse Source

first commit

HonorLee 8 years ago
parent
commit
00515a955b
2 changed files with 1 additions and 7 deletions
  1. 0 7
      config.js
  2. 1 0
      main.js

+ 0 - 7
config.js

@@ -35,10 +35,3 @@ global.COUNT = {
     link:0,
     user:0
 }
-
-/** Online Mongodb **/
-// global.MongoURL = 'mongodb://l2sServer:129810lh@dds-bp10931c06c465142.mongodb.rds.aliyuncs.com:3717/l2s';
-
-/** Localhost Mongodb **/
-global.MongoURL = 'mongodb://localhost:27017/l2s';
-

+ 1 - 0
main.js

@@ -5,6 +5,7 @@ const http = require('http');
 // Load Core & Variables
 global.ROOTPATH = __dirname;
 require('./config.js');
+require('./database.js');
 
 
 //Init Mongo Database & start server