This commit is contained in:
小鹏 2022-07-19 10:22:25 +08:00
commit ecb34fc134
5 changed files with 18 additions and 3 deletions

3
.vscode/settings.json vendored Normal file
View File

@ -0,0 +1,3 @@
{
"liveServer.settings.port": 5501
}

1
lock/base.sql.lock Normal file
View File

@ -0,0 +1 @@
time consuming12s

1
lock/dict.sql.lock Normal file
View File

@ -0,0 +1 @@
time consuming1s

1
lock/task.sql.lock Normal file
View File

@ -0,0 +1 @@
time consuming0s

View File

@ -7,10 +7,10 @@ import { MidwayConfig } from '@midwayjs/core';
export default { export default {
orm: { orm: {
type: 'mysql', type: 'mysql',
host: '127.0.0.1', host: '101.34.231.195',
port: 3306, port: 3306,
username: 'root', username: 'cool',
password: '123456', password: 'G4NCHwcc4aJipPMy',
database: 'cool', database: 'cool',
// 自动建表 注意:线上部署的时候不要使用,有可能导致数据丢失 // 自动建表 注意:线上部署的时候不要使用,有可能导致数据丢失
synchronize: true, synchronize: true,
@ -20,6 +20,15 @@ export default {
charset: 'utf8mb4', charset: 'utf8mb4',
}, },
cool: { cool: {
rpc: {
name: 'main',
},
redis: {
host: '127.0.0.1',
port: 6379,
db: 1,
password: '',
},
// 是否自动导入数据库 // 是否自动导入数据库
initDB: true, initDB: true,
} as CoolConfig, } as CoolConfig,