This commit is contained in:
@ -2,13 +2,23 @@
|
||||
|
||||
## 1) Normal Deployment
|
||||
|
||||
- Deploy code.
|
||||
- Deploy code:
|
||||
- optional pre-step on server:
|
||||
- `git pull`
|
||||
- `npm ci`
|
||||
- `npm run build`
|
||||
- Run migration:
|
||||
- `npm run db:deploy`
|
||||
- Optional schema safety (if DB changes):
|
||||
- `npm run ops:readiness`
|
||||
- Update environment variables and secrets.
|
||||
- Start app service.
|
||||
- Start or restart app service:
|
||||
- `npm run ops:safe-restart`
|
||||
- Start retry worker (`daemon` or cron).
|
||||
- Start maintenance cleanup (`npm run ops:maintenance`) on a periodic schedule, e.g. daily.
|
||||
- Verify auth session baseline (24h check target default can be tuned via `SESSION_TTL_SECONDS`):
|
||||
- set `OPS_SESSION_CHECK_EMAIL` dan `OPS_SESSION_CHECK_PASSWORD` di `.env`
|
||||
- `npm run ops:session-check`
|
||||
- Run readiness:
|
||||
- `npm run ops:readiness`
|
||||
- Monitor:
|
||||
|
||||
Reference in New Issue
Block a user