21 lines
586 B
JavaScript
21 lines
586 B
JavaScript
// pm2 process config for the content-ingestor worker (black, V4 worker host).
|
|
// Runtime matches platform.api (pm2 on black). Secrets come from `.env` on the
|
|
// host (env_file) — never committed. Health on CONTENT_INGESTOR_HEALTH_PORT (3825).
|
|
module.exports = {
|
|
apps: [
|
|
{
|
|
name: 'content-ingestor',
|
|
script: 'dist/main.js',
|
|
cwd: __dirname,
|
|
instances: 1,
|
|
exec_mode: 'fork',
|
|
autorestart: true,
|
|
max_restarts: 10,
|
|
max_memory_restart: '512M',
|
|
env_file: '.env',
|
|
env: {
|
|
NODE_ENV: 'production',
|
|
},
|
|
},
|
|
],
|
|
};
|