mirror of
https://github.com/CompassConnections/Compass.git
synced 2026-02-23 10:26:16 -05:00
* 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
22 lines
541 B
JavaScript
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',
|
|
},
|
|
],
|
|
}
|