Add PM2 ecosystem config with timezone support

This commit is contained in:
nmemmert committed 2025-12-15 14:51:38 -05:00
1 parent 92cb495ef2
commit 88680d478a
2 files changed
+18

No files matched your search

+3
View File
@@ -17,3 +17,6 @@ WEBHOOK_URL=https://your-webhook-url.com
# Monitoring Settings
CHECK_INTERVAL=60000
TIMEOUT=5000
# Timezone (use IANA timezone name, e.g., America/New_York, America/Chicago, America/Los_Angeles)
TIMEZONE=America/New_York
+15
View File
@@ -0,0 +1,15 @@
module.exports = {
apps: [{
name: 'resource-monitor',
script: './server/index.js',
instances: 1,
autorestart: true,
watch: false,
max_memory_restart: '1G',
env: {
NODE_ENV: 'production',
PORT: 3001,
TIMEZONE: 'America/New_York'
}
}]
};