← back to Corvette Dashboard Viewer

ecosystem.config.js

19 lines

// pm2 process definition for the '67 Corvette Catalog Console.
// Reboot-safe + version-controlled: `pm2 start ecosystem.config.js && pm2 save`.
// server.js already defaults PORT→9797 and PGHOST→/tmp; pinned here so the
// process definition is explicit and lives in git, not just pm2's dump.
module.exports = {
  apps: [{
    name: 'corvette-console',
    script: 'server.js',
    cwd: __dirname,
    // BASIC_AUTH gates the now-public liveskus.designerwallcoverings.com surface.
    // Kept in the (git-tracked) process def so the server.js override is REAL — rotate
    // the liveskus credential here + `pm2 restart ecosystem.config.js --update-env`,
    // independently of the other services sharing the dw-followup tunnel.
    env: { PORT: 9797, PGHOST: '/tmp', PGDATABASE: 'dw_unified', BASIC_AUTH: 'admin:DW2024!' },
    autorestart: true,
    max_restarts: 20,
  }],
};