Files
crosscode-platform/apps/accounts/ecosystem.config.example.cjs
T
joshuaandClaude Opus 5.5 7f34e184e1 Accounts: deploy hooks, env template, export, docs
scripts/products/accounts.sh (backup with pg_dump, build with the shared
packages, PM2, export, keep, failed-migration recovery); accounts in
SUPPORTED_PRODUCTS so deploy updates it where a church has it. Env
template in both places, PM2 example, export script, /api/health
version from package.json. README, CHANGELOG, WHATS-NEW; the plan's
changes while building and what's still to do.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 14:18:40 +02:00

23 lines
647 B
JavaScript

// PM2 config template. Each install keeps its own copy as ecosystem.config.cjs (not in git, so
// deploys never change it); crosscode creates it from this file the first time with the church's
// PM2 names and ports.
module.exports = {
apps: [
{
name: 'accounts-backend',
cwd: __dirname + '/backend',
script: 'dist/index.js',
env: { NODE_ENV: 'production' },
max_memory_restart: '400M',
},
{
name: 'accounts-frontend',
cwd: __dirname + '/frontend',
script: 'npm',
args: 'start -- -p 3200',
env: { NODE_ENV: 'production' },
max_memory_restart: '400M',
},
],
};