Add PM2 ecosystem config with timezone support
This commit is contained in:
1 parent
92cb495ef2
commit
88680d478a
2 files changed
+18
No files matched your search
@@ -17,3 +17,6 @@ WEBHOOK_URL=https://your-webhook-url.com
|
|||||||
# Monitoring Settings
|
# Monitoring Settings
|
||||||
CHECK_INTERVAL=60000
|
CHECK_INTERVAL=60000
|
||||||
TIMEOUT=5000
|
TIMEOUT=5000
|
||||||
|
|
||||||
|
# Timezone (use IANA timezone name, e.g., America/New_York, America/Chicago, America/Los_Angeles)
|
||||||
|
TIMEZONE=America/New_York
|
||||||
@@ -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'
|
||||||
|
}
|
||||||
|
}]
|
||||||
|
};
|
||||||
Reference in new issue
Block a user