后端搭建起来
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
module.exports = app => {
|
||||
app.beforeStart(async () => {
|
||||
const mysqlConfig = await app.configCenter.fetch("mysql")
|
||||
app.database = app.mysql.createInstance(mysqlConfig)
|
||||
})
|
||||
module.exports = () => {
|
||||
// app.beforeStart(async () => {
|
||||
// console.log(app.config)
|
||||
// const mysqlConfig = await app.configCenter.fetch("mysql")
|
||||
// app.database = app.mysql.createInstance(mysqlConfig)
|
||||
// })
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user