From b5c7663fd79d18a8906cd34c8dd58d31c05f9483 Mon Sep 17 00:00:00 2001 From: bonamin Date: Wed, 21 Oct 2026 08:53:54 +0300 Subject: [PATCH] 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 --- README.md | 6 +++--- deploy-host.sh | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 96481a9..202d213 100644 --- a/README.md +++ b/README.md @@ -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` → `: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: diff --git a/deploy-host.sh b/deploy-host.sh index e5458d1..606faa3 100644 --- a/deploy-host.sh +++ b/deploy-host.sh @@ -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"