Add pm2 start json

pull/21/head
HardiReady 2017-12-10 15:49:57 +01:00
parent 93ecfe3094
commit 970e1fb643
2 changed files with 12 additions and 4 deletions

12
api/pm2-start.json Normal file
View File

@ -0,0 +1,12 @@
{
"apps": [
{
"name": "opt-cc",
"script": "./api/server.js",
"watch": false,
"env": {
"TZ": "Europe/Berlin"
}
}
]
}

View File

@ -68,10 +68,6 @@ const parseWarLog = (lineArray, war) => {
stats.war['endBudgetBlufor'] = transformMoneyString(budg[11]); stats.war['endBudgetBlufor'] = transformMoneyString(budg[11]);
stats.war['endBudgetOpfor'] = transformMoneyString(budg[14]); stats.war['endBudgetOpfor'] = transformMoneyString(budg[14]);
stats.war.endDate = getFullTimeDate(war.date, budg[5]); stats.war.endDate = getFullTimeDate(war.date, budg[5]);
console.log(stats.war.date);
console.log(budg[5]);
console.log(stats.war.endDate);
} else { } else {
stats.budget.push(getBudgetEntry(budg, war._id, war.date)); stats.budget.push(getBudgetEntry(budg, war._id, war.date));
} }