Skip to content

Commit

Permalink
🔧 修改模板中index的数据库加载
Browse files Browse the repository at this point in the history
  • Loading branch information
kongnet committed Aug 16, 2019
1 parent f297b56 commit 4727cb6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion output-template/index.js.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ const $ = require('meeko')

config.beforeMount = async () => {
// 连接mysql
/*
const db = require('j2sql')(config.mysql)
await $.tools.waitNotEmpty(db, '_mysql')
global.db = db
/*
// 连接mysql main实例
const dbMain = require('j2sql')(config.mysqlMain)
await $.tools.waitNotEmpty(dbMain, '_mysql')
Expand Down

0 comments on commit 4727cb6

Please sign in to comment.