Add critical warning: never destroy prod services, use --redeploy
This commit is contained in:
parent
dc72904aff
commit
1df3e82be9
1 changed files with 20 additions and 0 deletions
20
CLAUDE.md
20
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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue