cocottetech/@platform/codebase/@features/content-ingestor/ecosystem.config.cjs
autocommit 562a69c3e0 chore(content-ingestor): 🔧 Update deployment scripts and configs for new targets and environments
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
2026-06-08 00:11:17 -07:00

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',
},
},
],
};