work-tracing/ecosystem.config.js
2025-05-16 17:55:30 +04:00

26 lines
758 B
JavaScript

module.exports = {
apps: [
{
name: "work-tracing",
script: "./start_app.sh",
args: "prod",
interpreter: "bash",
env: {
// Environment variables will be loaded from config.env by the application
NODE_ENV: "production",
// These env vars are for PM2's own management, not for the app
PM2_SERVE_PORT: 5050,
PM2_SERVE_HOST: "0.0.0.0"
},
// Additional PM2 settings for better management
watch: false,
max_memory_restart: "300M",
restart_delay: 3000,
max_restarts: 10,
// Optional logging configuration
error_file: "./logs/pm2-error.log",
out_file: "./logs/pm2-out.log",
merge_logs: true
},
],
};