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 filePath = `${folderPath}/${fileName}`;
|
||||||
const scan = fs.watchFile(
|
const scan = fs.watchFile(
|
||||||
filePath,
|
filePath,
|
||||||
{ interval: 120000 },
|
{ interval: 300000 },
|
||||||
async (eventType) => {
|
async (eventType) => {
|
||||||
//check special item, extra RAM, error in log
|
//check special item, extra RAM, error in log
|
||||||
let lines = [];
|
let lines = [];
|
||||||
|
|
|
||||||
|
|
@ -42,6 +42,8 @@ const databaseConfig: DatabaseConfig = {
|
||||||
password: Env.get('MYSQL_PASSWORD', ''),
|
password: Env.get('MYSQL_PASSWORD', ''),
|
||||||
database: Env.get('MYSQL_DB_NAME'),
|
database: Env.get('MYSQL_DB_NAME'),
|
||||||
},
|
},
|
||||||
|
pool: {min:1, max:200},
|
||||||
|
acquireConnectionTimeout: 10000,
|
||||||
migrations: {
|
migrations: {
|
||||||
naturalSort: true,
|
naturalSort: true,
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue