Add critical warning: never destroy prod services, use --redeploy

This commit is contained in:
Russell Ballestrini 2026-01-04 15:47:28 -05:00
parent dc72904aff
commit 1df3e82be9

View file

@ -1,5 +1,25 @@
# CLAUDE.md - neopig Project Reference
## CRITICAL: Unsandbox Service Management
**NEVER use `--destroy` on production services.** Services contain persistent data (SQLite databases, vault files) that cannot be recovered.
For redeployments, ALWAYS use `--redeploy`:
```bash
# CORRECT: Redeploy with updated bootstrap (preserves data)
un2 service --redeploy SERVICE_ID --bootstrap /path/to/bootstrap.sh
# WRONG: This DESTROYS all data permanently
un2 service --destroy SERVICE_ID # NEVER DO THIS ON PROD
```
**Current production service:** `unsb-service-*` running neopig.on.unsandbox.com
If a service shows "Instance is not running" or "unreachable", try:
1. `--redeploy` with bootstrap script (may restart the instance)
2. Wait and check `--logs` periodically
3. Ask the user before any destructive action
## Commit Rules
**NEVER attribute Claude in commit messages.** No co-author tags, no "Generated with Claude" footers, no AI mentions. Keep commits clean and human-authored in appearance.