完善定时任务

This commit is contained in:
ap 2022-01-06 17:38:25 +08:00
parent b07faab723
commit 227ab07c07

View File

@ -10,7 +10,7 @@ export default (appInfo: EggAppInfo) => {
host: '127.0.0.1',
port: 3306,
username: 'root',
password: '123123',
password: '123456',
database: 'cool',
// 自动建表 注意:线上部署的时候不要使用,有可能导致数据丢失
synchronize: true,
@ -30,15 +30,5 @@ export default (appInfo: EggAppInfo) => {
},
};
config.cool = {
// redis为插件名称
redis: {
host: '127.0.0.1',
password: '',
port: 6379,
db: 0,
},
};
return config;
};