BirdLense Hub server deployment (EN)
Minimal production deployment checklist. Narrative and context: INSTALL § Deploy to server.
1) Prepare
- Ensure SSH access from your local machine to the server.
- Create
scripts/deploy.local.shin repo root (copy fromscripts/deploy.local.sh.example). - Set at least:
DEPLOY_HOST— SSH targetDEPLOY_URL— public hub URL- optional
DEPLOY_REMOTE_DIR
Example:
export DEPLOY_HOST="root@192.168.1.11"
export DEPLOY_URL="http://192.168.1.11:8085"
2) Deploy
From repository root:
make deploy
The command:
- Syncs code to server (excluding
app/data,site/, local helper folders). - Runs
make stop,make build,make starton server. - Performs basic post-deploy health checks.
3) Verify
- Open UI:
http://<server>:8085 - Check API health:
curl -sS http://<server>:8085/api/ui/health
Expected:
{"status":"ok"}
4) Data safety
Standard deploy keeps:
app/data/(recordings and DB),app/app_config/user_config.yaml(user settings).
5) Common issues
Password requiredon system API
Use an authenticated session (UI login /verify-passwordendpoint).- Stale frontend after deploy
Clear browser PWA/Service Worker cache and reload. - Port conflict
VerifyBIRDLENSE_PORTand occupied ports on server.