Backend (Express + Prisma, ES modules, as Accounts): /api/health and /api/v1/site/status (Coming soon until the first publish), the content model and its first migration, and the confirmed section variants per template (WEBSITE-1.0-PLAN §3, decision 16) with the template switch rules, with tests. Frontend (Next.js 16): Coming soon page, admin placeholder, robots.txt. env.template.json, PM2 example, CHANGELOG and WHATS-NEW. Root workspaces and lint updated. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
23 lines
645 B
JavaScript
23 lines
645 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: 'website-backend',
|
|
cwd: __dirname + '/backend',
|
|
script: 'dist/index.js',
|
|
env: { NODE_ENV: 'production' },
|
|
max_memory_restart: '400M',
|
|
},
|
|
{
|
|
name: 'website-frontend',
|
|
cwd: __dirname + '/frontend',
|
|
script: 'npm',
|
|
args: 'start -- -p 3300',
|
|
env: { NODE_ENV: 'production' },
|
|
max_memory_restart: '400M',
|
|
},
|
|
],
|
|
};
|