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:
@@ -22,8 +22,8 @@ Public read-only, installable on phones as an app (PWA), served at
|
|||||||
## Getting Started
|
## Getting Started
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
git clone https://gitea.bonamin.net/bonamin/refusol-datalogger.git
|
git clone https://gitea.bonamin.net/bonamin/refusol-datalogging.git
|
||||||
cd refusol-datalogger
|
cd refusol-datalogging
|
||||||
|
|
||||||
cp .env.example .env # set API_KEY, SITE_LATITUDE/LONGITUDE, HTTP_PORT
|
cp .env.example .env # set API_KEY, SITE_LATITUDE/LONGITUDE, HTTP_PORT
|
||||||
docker compose up -d --build
|
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.
|
HTTPS) — the PWA install needs HTTPS.
|
||||||
|
|
||||||
Server deploys: `deploy-host.sh` (fetch `main`, reset, `docker compose up -d --build`).
|
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:
|
To see it with fake data locally:
|
||||||
|
|
||||||
|
|||||||
+2
-1
@@ -1,7 +1,8 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -e
|
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)"
|
echo "Deploy started at $(date)"
|
||||||
cd "$PROJECT"
|
cd "$PROJECT"
|
||||||
|
|||||||
Reference in New Issue
Block a user