mirror of
https://github.com/CompassConnections/Compass.git
synced 2025-12-23 22:18:43 -05:00
22 lines
648 B
JavaScript
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"
|
|
}
|
|
]
|
|
};
|