← back to Reidwitlin Landing
ecosystem.config.js
15 lines
// pm2 launcher for the Reid Witlin internal landing.
// Pins the port so it's stable across restarts (bare `node server.js` left PORT
// unset → random port). The BASIC_AUTH credential is NOT hardcoded here — it is
// read from the gitignored .env via dotenv (server.js) so no secret is committed.
module.exports = {
apps: [{
name: 'reidwitlin-landing',
script: 'server.js',
cwd: __dirname,
env: { PORT: 9952 }, // credential comes from .env, not this committed file
autorestart: true,
max_restarts: 20,
}],
};