Files
Compass/backend/api/ecosystem.config.js
MartinBraquet 42b496cd77 Fix
2025-09-17 17:58:11 +02:00

22 lines
648 B
JavaScript

module.exports = {
apps: [
{
name: "api",
script: "node",
args: "--dns-result-order=ipv4first backend/api/lib/serve.js",
env: {
NODE_ENV: "production",
NODE_PATH: "/usr/src/app/node_modules", // <- ensures Node finds tsconfig-paths
PORT: 80,
},
instances: 1,
exec_mode: "fork",
autorestart: true,
watch: false,
// 4 GB on the box, give 3 GB to the JS heap
node_args: "--max-old-space-size=3072",
max_memory_restart: "3500M"
}
]
};