数据库调整回oms
This commit is contained in:
4
index.js
4
index.js
@@ -14,9 +14,9 @@ chalk.level = 1
|
||||
app.listen(port, () => {
|
||||
db.init()
|
||||
app.use(express.json()) // for parsing application/json
|
||||
app.use(xmlparser());
|
||||
app.use(xmlparser()); // for parsing application/xml
|
||||
app.use(express.urlencoded({extended: true, limit: '50mb'})) // for parsing application/x-www-form-urlencoded
|
||||
|
||||
//启动服务并监听
|
||||
Promise.all([rest.init(app)]).then(() => {
|
||||
log(`${chalk.bgGreen.black(" DONE ")} serve is listening on ${port}`)
|
||||
ws.init(app)
|
||||
|
||||
@@ -3,6 +3,6 @@ module.exports = {
|
||||
user: "root",
|
||||
port: 3306,
|
||||
password: "Cwy@2019",
|
||||
database: "dvcp_v2_dev",
|
||||
database: "dvcp_oms_dev",
|
||||
multipleStatements: true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user