← back to Ventura Corridor

ecosystem.config.cjs

29 lines

/**
 * Ventura Corridor — PM2 process config.
 * Local-only Mac. Server binds 127.0.0.1:9785.
 *
 * Port moved 9780 -> 9785 (2026-08-07): ga-allsites (the live pm2-managed
 * analytics.agentabrams.com dashboard) is the incumbent on 9780. PUBLIC_BASE_URL is
 * set to the new port so OAuth callbacks (appointments/oauth.ts) and emitted email
 * links follow the listener instead of defaulting to the old 9780.
 */
module.exports = {
  apps: [
    {
      name: 'ventura-corridor',
      script: 'node_modules/.bin/tsx',
      args: 'src/server/index.ts',
      cwd: __dirname,
      env: {
        NODE_ENV: 'production',
        PORT: '9785',
        PUBLIC_BASE_URL: 'http://127.0.0.1:9785',
      },
      autorestart: true,
      max_memory_restart: '512M',
      out_file: 'logs/server.out.log',
      error_file: 'logs/server.err.log',
    },
  ],
};