Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
Dui123
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
王天宇
Dui123
Commits
f81f9bd4
Commit
f81f9bd4
authored
Oct 20, 2021
by
wty
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更改连接池
parent
0c93b37d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
SQLPool.js
server/SQLPool.js
+3
-0
app.js
server/app.js
+1
-1
No files found.
server/SQLPool.js
View file @
f81f9bd4
...
@@ -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)=>{
server/app.js
View file @
f81f9bd4
...
@@ -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'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment