Skip to content

Commit

Permalink
Add dates to PM2 error logs (#2887)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ndpnt authored Jul 8, 2024
1 parent 8bf087d commit 2cec4a5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions deployment/pm2.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ module.exports = {
max_restarts: 2,
min_uptime: '1h', // Set a relatively high duration (more than the longest run) so that restarts that occur before this duration has elapsed are considered unstable.
restart_delay: 3 * 60 * 60 * 1000, // likely related to a connectivity problem that will take some time to be fixed
log_date_format: "YYYY-MM-DD HH:mm Z",
env: {
"NODE_OPTIONS": "--max-old-space-size=4096", // Avoid `FATAL ERROR: Reached heap limit Allocation failed`
}
Expand Down

0 comments on commit 2cec4a5

Please sign in to comment.