Skip to content

Commit 1ffb7e2

Browse files
committed
feat: serve production build via PM2
npm start now builds all packages and starts PM2, with Express serving the built client UI from client/dist. Adds dev-start.js for clean PM2 dev startup, PM2 convenience scripts, and uses local pm2 binary throughout (no global install required).
1 parent 00e053d commit 1ffb7e2

7 files changed

Lines changed: 1398 additions & 17 deletions

File tree

.changelog/v0.9.0.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# v0.9.0
2+
3+
## Added
4+
- Production serving via PM2: `npm start` builds all packages then starts PM2
5+
- Express serves built client UI from `client/dist` with SPA catch-all routing
6+
- `scripts/dev-start.js` for clean PM2-based dev startup (replaces concurrently)
7+
- PM2 convenience scripts: `pm2:start`, `pm2:stop`, `pm2:restart`, `pm2:logs`, `pm2:status`
8+
- `dev:stop` script for stopping PM2 processes
9+
10+
## Changed
11+
- `update.sh` uses local pm2 binary instead of requiring global install
12+
- `ecosystem.config.cjs` adds `log_date_format` and `max_memory_restart` to server app
13+
- pm2 added as devDependency (no longer requires global install)

ecosystem.config.cjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ module.exports = {
1818
cwd: `${__dirname}/server`,
1919
interpreter: 'node',
2020
time: true,
21+
log_date_format: 'YYYY-MM-DD HH:mm:ss',
22+
max_memory_restart: '500M',
2123
env: {
2224
NODE_ENV: 'development',
2325
PORT: PORTS.API,

0 commit comments

Comments
 (0)