← back to New Engine

ecosystem.config.js

15 lines

// pm2 process definition for the New Arrivals engine (new.engine.designerwallcoverings.com).
// Reboot-safe + version-controlled: `pm2 start ecosystem.config.js && pm2 save`.
// server.js already defaults PORT→9870 and PGHOST→/tmp; pinned here so the process
// definition is explicit and lives in git, not just pm2's dump.
module.exports = {
  apps: [{
    name: 'new-engine',
    script: 'server.js',
    cwd: __dirname,
    env: { PORT: 9870, PGHOST: '/tmp', PGDATABASE: 'dw_unified' },
    autorestart: true,
    max_restarts: 20,
  }],
};