Commit f81f9bd4 authored by wty's avatar wty

更改连接池

parent 0c93b37d
...@@ -19,6 +19,8 @@ request(config['remote_config_url'],{},(error, request, body)=>{ ...@@ -19,6 +19,8 @@ request(config['remote_config_url'],{},(error, request, body)=>{
'database': database, 'database': database,
'connectionLimit': 1000 'connectionLimit': 1000
}) })
console.info(Mysql.config)
console.info(Mysql)
module.exports = Mysql module.exports = Mysql
}) })
...@@ -26,3 +28,4 @@ request(config['remote_config_url'],{},(error, request, body)=>{ ...@@ -26,3 +28,4 @@ request(config['remote_config_url'],{},(error, request, body)=>{
...@@ -14,7 +14,7 @@ const deleteRouter = require('./routes/delete') ...@@ -14,7 +14,7 @@ const deleteRouter = require('./routes/delete')
const updateRouter = require('./routes/update') const updateRouter = require('./routes/update')
const submitRouter = require('./routes/page') const submitRouter = require('./routes/page')
const typeManage = require('./routes/typeManage') const typeManage = require('./routes/typeManage')
const Mysql = require('./SQLPool')
const app = express(); const app = express();
global.domain = 'http://' + os.networkInterfaces()['eth0'][0]['address'] + ':3000' global.domain = 'http://' + os.networkInterfaces()['eth0'][0]['address'] + ':3000'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment