Skip to content

Commit

Permalink
Fix PM2 logging
Browse files Browse the repository at this point in the history
Resolves #3
  • Loading branch information
David Arutiunian committed Jan 23, 2019
1 parent 2c0eb31 commit a8496fb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
9 changes: 4 additions & 5 deletions ecosystem.config.yaml
@@ -1,9 +1,8 @@
apps:
- script: npm
args: 'run deploy'
- script: node
args: 'dist/index.js'
name: utlimate-steam-bot
instances: 1
exec_mode: cluster
exec_mode: fork
watch: false
max_memory_restart: '1G'
max_memory_restart: '512MB'
node_args: --trace-warnings
3 changes: 1 addition & 2 deletions package.json
Expand Up @@ -63,8 +63,7 @@
"test": " cross-env NODE_ENV=test mocha --opts mocha.opts",
"coverage": "yarn run clean && cross-env NODE_ENV=test nyc mocha --opts mocha.opts",
"watch-test": "cross-env NODE_ENV=test mocha --opts mocha.opts --watch-extensions ts --watch",
"development": "yarn run build && yarn start",
"deploy": "rimraf dist coverage && tsc && node -r dotenv/config dist/index.js"
"development": "yarn run build && yarn start"
},
"devDependencies": {
"@types/chai": "^4.1.7",
Expand Down
2 changes: 1 addition & 1 deletion src/utils/logger/logger.ts
Expand Up @@ -15,7 +15,7 @@ if (ENVIRONMENT !== ENodeEnv.TEST) {
type: 'rotating-file',
path: './logs/debug.log',
period: '1d',
count: Number.MAX_SAFE_INTEGER,
count: 180,
},
);
}
Expand Down

0 comments on commit a8496fb

Please sign in to comment.