Add clean NAS deploy flow and Wei strategist identity
This commit is contained in:
21
docs/deployment.md
Normal file
21
docs/deployment.md
Normal 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.
|
||||
Reference in New Issue
Block a user