Files
Compass/backend/api/ecosystem.config.js
Martin Braquet ba9b3cfb06 Add pretty formatting (#29)
* Test

* Add pretty formatting

* Fix Tests

* Fix Tests

* Fix Tests

* Fix

* Add pretty formatting fix

* Fix

* Test

* Fix tests

* Clean typeckech

* Add prettier check

* Fix api tsconfig

* Fix api tsconfig

* Fix tsconfig

* Fix

* Fix

* Prettier
2026-02-20 17:32:27 +01:00

22 lines
541 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',
},
],
}