minMemo
This commit is contained in:
1 parent
f5c06374e1
commit
45afa8ccfd
5 files changed
+13
-7
No files matched your search
@@ -1,8 +1,14 @@
|
||||
|
||||
let options = {
|
||||
execArgv: ['--max-old-space-size=8192'],
|
||||
stdio: 'inherit'
|
||||
}
|
||||
|
||||
if (process.argv.includes("minMemo")) {
|
||||
options = {
|
||||
stdio: 'inherit'
|
||||
}
|
||||
console.log('Running with Minimun Memory Required.')
|
||||
}
|
||||
|
||||
const { fork } = require('child_process')
|
||||
fork('./BackendServers/server.js', process.argv, options)
|
||||
Reference in new issue
Block a user