1.3 KiB
1.3 KiB
watthound-demo-site
Static single-file WattHound demo (ABC Electrical) served at https://watthound-demo.sculpt7.com
Hosting (NO GitHub)
- Git host:
gitea.sculpt.co.nz/macjones/watthound-demo(Mac's own self-hosted Gitea, public repo). GitHub is not involved anywhere. - Runtime: Coolify app
watthound-demo-gitea(uuidhd9qde2w6xrmnippah409jgt) builds theDockerfile(nginx:alpine servingindex.html) straight from Giteamain.
Update the live demo (repeatable, no GitHub)
./deploy.sh # commit ./index.html, push to Gitea, redeploy, verify
./deploy.sh /path/to/new/index.html # drop in a new build first, then the above
That script: commits index.html, git push gitea main, triggers the Coolify
deploy via API, then polls the FQDN until it serves the new byte size.
Manual equivalent
git add index.html && git commit -m "update demo"
git push gitea main
# then trigger Coolify (token from myPKA .env, never printed):
BASE="$(grep '^COOLIFY_URL=' /Users/macjones/Projects/watthound/mypka/.env | cut -d= -f2-)/api/v1"
TOKEN="$(grep '^COOLIFY_API_TOKEN=' /Users/macjones/Projects/watthound/mypka/.env | cut -d= -f2-)"
curl -sS -X POST -H "Authorization: Bearer $TOKEN" \
"$BASE/deploy?uuid=hd9qde2w6xrmnippah409jgt&force=true"