From 970e1fb643224de3a3cb71096433b284babe1535 Mon Sep 17 00:00:00 2001 From: HardiReady Date: Sun, 10 Dec 2017 15:49:57 +0100 Subject: [PATCH] Add pm2 start json --- api/pm2-start.json | 12 ++++++++++++ api/tools/log-parse-tool.js | 4 ---- 2 files changed, 12 insertions(+), 4 deletions(-) create mode 100644 api/pm2-start.json diff --git a/api/pm2-start.json b/api/pm2-start.json new file mode 100644 index 0000000..34ec242 --- /dev/null +++ b/api/pm2-start.json @@ -0,0 +1,12 @@ +{ + "apps": [ + { + "name": "opt-cc", + "script": "./api/server.js", + "watch": false, + "env": { + "TZ": "Europe/Berlin" + } + } + ] +} diff --git a/api/tools/log-parse-tool.js b/api/tools/log-parse-tool.js index 2cb06df..3a3c429 100644 --- a/api/tools/log-parse-tool.js +++ b/api/tools/log-parse-tool.js @@ -68,10 +68,6 @@ const parseWarLog = (lineArray, war) => { stats.war['endBudgetBlufor'] = transformMoneyString(budg[11]); stats.war['endBudgetOpfor'] = transformMoneyString(budg[14]); stats.war.endDate = getFullTimeDate(war.date, budg[5]); - - console.log(stats.war.date); - console.log(budg[5]); - console.log(stats.war.endDate); } else { stats.budget.push(getBudgetEntry(budg, war._id, war.date)); } -- 2.25.1