fix(deploy): run deploy-host.sh from its own checkout, any clone path

The hard-coded /home/bonamin/refusol-datalogger didn't match the real
clone (repo is refusol-datalogging). README clone URL updated too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-21 08:53:54 +03:00
co-authored by Claude Opus 5.5
parent d4b584e364
commit b5c7663fd7
2 changed files with 5 additions and 4 deletions
+3 -3
View File
@@ -22,8 +22,8 @@ Public read-only, installable on phones as an app (PWA), served at
## Getting Started
```bash
git clone https://gitea.bonamin.net/bonamin/refusol-datalogger.git
cd refusol-datalogger
git clone https://gitea.bonamin.net/bonamin/refusol-datalogging.git
cd refusol-datalogging
cp .env.example .env # set API_KEY, SITE_LATITUDE/LONGITUDE, HTTP_PORT
docker compose up -d --build
@@ -34,7 +34,7 @@ proxy host `solar.bonamin.net` → `<vps>:8090` with SSL (Let's Encrypt, force
HTTPS) — the PWA install needs HTTPS.
Server deploys: `deploy-host.sh` (fetch `main`, reset, `docker compose up -d --build`).
Set `PROJECT` in it to the checkout path on the VPS.
It works from wherever the repo is cloned.
To see it with fake data locally:
+2 -1
View File
@@ -1,7 +1,8 @@
#!/bin/sh
set -e
PROJECT=/home/bonamin/refusol-datalogger
# The checkout this script lives in, wherever it was cloned
PROJECT="$(cd "$(dirname "$0")" && pwd)"
echo "Deploy started at $(date)"
cd "$PROJECT"