2025-10-28 10:38:12 +01:00
# Change Proposal: add-ftps-deployment
## Why
2025-10-28 16:02:35 +01:00
Currently there is no automated way to deploy the built Hugo site to the production server. Manual file transfers are error-prone and time-consuming. This change adds a deployment script to automate uploads via rsync over SSH, properly mirroring content (including deletions).
2025-10-28 10:38:12 +01:00
## What Changes
2025-10-28 16:02:35 +01:00
- Add deployment script `scripts/deploy.sh` that syncs `public/` directory via rsync
- Use environment variables `SSH_USER` , `SSH_HOST` , `SSH_PORT` , and `REMOTE_ROOT` for configuration
- Implement mirror behavior with `--delete` flag to remove remote files not present locally
- Implement prerequisite checks (public/ exists, rsync installed, credentials set)
2025-10-28 10:38:12 +01:00
- Add error handling and progress reporting
- Update documentation with deployment instructions
## Impact
- Affected specs: New `deployment` capability
- Affected code: New file `scripts/deploy.sh`
2025-10-28 16:02:35 +01:00
- Dependencies: Requires `rsync` to be installed
- Configuration: User must set `SSH_USER` and `SSH_HOST` environment variables
- `SSH_PORT` defaults to 22
- `REMOTE_ROOT` defaults to /httpsdocs
2025-10-28 10:38:12 +01:00
- No changes to existing Hugo templates, content, or build process