增加部署发布模块
This commit is contained in:
2
index.js
2
index.js
@@ -8,6 +8,8 @@ app.listen(port, () => {
|
||||
console.log('启动数据库连接池...')
|
||||
db.init()
|
||||
console.log('启动接口...')
|
||||
app.use(express.json()) // for parsing application/json
|
||||
app.use(express.urlencoded({ extended: true })) // for parsing application/x-www-form-urlencoded
|
||||
rest.init(app).then(()=>{
|
||||
console.log(`serve is listening on ${port}`)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user