Add clean NAS deploy flow and Wei strategist identity

This commit is contained in:
2026-07-02 11:30:38 +09:00
parent e28ef20018
commit 9f4e6ed5e2
22 changed files with 278 additions and 35 deletions

21
docs/deployment.md Normal file
View File

@@ -0,0 +1,21 @@
# Deployment
The NAS deployment should leave one canonical web directory:
- `/volume1/web/heros_web`
Use the checked-in script instead of ad-hoc deploy commands:
```powershell
pnpm deploy:nas
```
By default, `scripts/deploy-nas.ps1` builds the project, uploads `dist`, swaps the remote directory, and removes transient deploy or backup folders. This keeps `/volume1/web` from filling with `heros_web.backup-*` and `.heros_web_deploy_*` directories.
Optional backup retention:
```powershell
powershell -NoProfile -ExecutionPolicy Bypass -File scripts/deploy-nas.ps1 -Build -BackupRetention 3
```
Use nonzero retention only for a temporary release window. The normal project default is `0`, so only `/volume1/web/heros_web` remains after deployment.