# jfmsrv01 Rules

Use:

- /opt/jfmsrv01/scripts/HANDOVER.md
- /opt/jfmsrv01/scripts/CHANGELOG.md
- /opt/jfmsrv01/scripts/RULES.md
- /opt/jfmsrv01/scripts/publish_handoff.sh

Do not use stale /opt/legaltranscribe/scripts paths for current jfmsrv01 work.

Patch rules:

1. Use safe heredoc-to-file scripts.
2. Back up changed files first.
3. Repair in place unless rollback is necessary.
4. Update handover and changelog.
5. Validate with lint, cache clear, curl checks and nginx -t where relevant.
6. Never publish secrets.

Source publishing may include first-party PHP only:

- app
- routes
- config
- database
- resources/views

Exclude:

- .env
- vendor
- node_modules
- storage/logs
- storage/framework
- bootstrap/cache
- private keys
- full database dumps
