diff --git a/backend/package.json b/backend/package.json index ae5f3dd81..a8add53e8 100644 --- a/backend/package.json +++ b/backend/package.json @@ -23,7 +23,8 @@ "ng": "./node_modules/@angular/cli/bin/ng", "tsc": "./node_modules/typescript/bin/tsc", "build": "npm run tsc", - "start": "node --max-old-space-size=4096 dist/index.js", + "start": "node --max-old-space-size=2048 dist/index.js", + "start-production": "node --max-old-space-size=4096 dist/index.js", "test": "echo \"Error: no test specified\" && exit 1" }, "dependencies": { diff --git a/production/mempool-start-all b/production/mempool-start-all index 338197b5a..3c7a445db 100755 --- a/production/mempool-start-all +++ b/production/mempool-start-all @@ -4,8 +4,5 @@ source "$NVM_DIR/nvm.sh" for site in mainnet liquid testnet bisq do cd "${HOME}/${site}/backend/" - screen -dmS "${site}" sh -c 'while true;do npm run start;sleep 1;done' + screen -dmS "${site}" sh -c 'while true;do npm run start-production;sleep 1;done' done - -#cd "${HOME}/webhook/" -#screen -dmS webhook ./start