diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..6f3a291 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "liveServer.settings.port": 5501 +} \ No newline at end of file diff --git a/lock/base.sql.lock b/lock/base.sql.lock new file mode 100644 index 0000000..f7fb120 --- /dev/null +++ b/lock/base.sql.lock @@ -0,0 +1 @@ +time consuming:12s \ No newline at end of file diff --git a/lock/dict.sql.lock b/lock/dict.sql.lock new file mode 100644 index 0000000..b2cef33 --- /dev/null +++ b/lock/dict.sql.lock @@ -0,0 +1 @@ +time consuming:1s \ No newline at end of file diff --git a/lock/task.sql.lock b/lock/task.sql.lock new file mode 100644 index 0000000..a77002f --- /dev/null +++ b/lock/task.sql.lock @@ -0,0 +1 @@ +time consuming:0s \ No newline at end of file diff --git a/src/config/config.local.ts b/src/config/config.local.ts index 67304ea..c3a58de 100644 --- a/src/config/config.local.ts +++ b/src/config/config.local.ts @@ -7,10 +7,10 @@ import { MidwayConfig } from '@midwayjs/core'; export default { orm: { type: 'mysql', - host: '127.0.0.1', + host: '101.34.231.195', port: 3306, - username: 'root', - password: '123456', + username: 'cool', + password: 'G4NCHwcc4aJipPMy', database: 'cool', // 自动建表 注意:线上部署的时候不要使用,有可能导致数据丢失 synchronize: true, @@ -20,6 +20,15 @@ export default { charset: 'utf8mb4', }, cool: { + rpc: { + name: 'main', + }, + redis: { + host: '127.0.0.1', + port: 6379, + db: 1, + password: '', + }, // 是否自动导入数据库 initDB: true, } as CoolConfig,