diff --git a/CLAUDE.md b/CLAUDE.md index cc70f2b..669f017 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -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.