Deployment
Assists with deploying OSD packages to the sych.local server.
Deployment Targets
Use make from anywhere (host or container):
Full Deploy (Frontend + Gallery)
bash
# Dev builds (recommended for development) make deploy # Production builds (optimized) make deploy-prod
Selective Deploy
bash
make deploy-frontend # Live variants only (live_day + live_thermal) make deploy-gallery # Recording variant only (recording_day)
What Gets Deployed
Location: sych.local:/home/archer/web/osd/
| File | Purpose |
|---|---|
live_day.tar | Frontend live day stream |
live_thermal.tar | Frontend live thermal stream |
default.tar | Gallery (recording_day) |
pip_override.json | PiP view config overrides |
Hot-Reload Workflow
- •Make changes to OSD source
- •Run
make deploy(or./tools/devcontainer-build.sh deploy) - •Frontend auto-detects package changes via ETag
- •Worker reloads within ~1 second
Configuration
Environment variables in .env:
bash
DEPLOY_HOST=sych.local DEPLOY_USER=archer
PiP Override
The resources/pip_override.json disables all widgets except crosshair for Picture-in-Picture views:
json
{
"variant_info": { "enabled": false },
"speed_indicators": { "enabled": false },
"timestamp": { "enabled": false },
"navball": { "enabled": false },
"celestial_indicators": { "enabled": false }
}
Package Sizes
| Mode | WASM | Package |
|---|---|---|
| Production | ~640KB | ~900KB |
| Dev | ~2.9MB | ~3MB |
Dev packages include debug symbols for easier troubleshooting.