update interval watch file && update config database
This commit is contained in:
parent
fbac5c2f05
commit
3fae2b6bb9
|
|
@ -72,7 +72,7 @@ export async function runtimeCheckLogs(folderPath) {
|
|||
const filePath = `${folderPath}/${fileName}`;
|
||||
const scan = fs.watchFile(
|
||||
filePath,
|
||||
{ interval: 120000 },
|
||||
{ interval: 300000 },
|
||||
async (eventType) => {
|
||||
//check special item, extra RAM, error in log
|
||||
let lines = [];
|
||||
|
|
|
|||
|
|
@ -42,6 +42,8 @@ const databaseConfig: DatabaseConfig = {
|
|||
password: Env.get('MYSQL_PASSWORD', ''),
|
||||
database: Env.get('MYSQL_DB_NAME'),
|
||||
},
|
||||
pool: {min:1, max:200},
|
||||
acquireConnectionTimeout: 10000,
|
||||
migrations: {
|
||||
naturalSort: true,
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue