remove garbage collection gc node
parent
e68c0be622
commit
522790901d
|
@ -6,7 +6,7 @@
|
|||
"scripts": {
|
||||
"build": "tsc",
|
||||
"watch": "tsc -w",
|
||||
"start": "nodemon --expose-gc dist/server.js",
|
||||
"start": "nodemon dist/server.js",
|
||||
"dev:server": "ts-node-dev --respawn --transpile-only --ignore node_modules src/server.ts",
|
||||
"pretest": "NODE_ENV=test sequelize db:migrate && NODE_ENV=test sequelize db:seed:all",
|
||||
"test": "NODE_ENV=test jest",
|
||||
|
|
|
@ -9,12 +9,12 @@ const server = app.listen(process.env.PORT, () => {
|
|||
});
|
||||
|
||||
|
||||
if (global.gc) {
|
||||
console.log(">> Starting Garbage Collector...");
|
||||
global.gc();
|
||||
} else {
|
||||
console.warn('No GC hook! Start your program as `node --expose-gc file.js`.');
|
||||
}
|
||||
// if (global.gc) {
|
||||
// console.log(">> Starting Garbage Collector...");
|
||||
// global.gc();
|
||||
// } else {
|
||||
// console.warn('No GC hook! Start your program as `node --expose-gc file.js`.');
|
||||
// }
|
||||
|
||||
initIO(server);
|
||||
StartAllWhatsAppsSessions();
|
||||
|
|
Loading…
Reference in New Issue