fix: add version to health endpoint + warn users with stale compose files

Repo migration in March 2026 rewrote all commit hashes, leaving old
clones with a docker-compose.yml that builds from source instead of
pulling pre-built images.  Added detection warnings to compose.sh,
start.bat, and start.sh so affected users see clear instructions.
Also exposes APP_VERSION in /api/health for easier debugging.
This commit is contained in:
anoracleofra-code
2026-03-27 13:56:32 -06:00
parent c81d81ec41
commit c35978c64d
6 changed files with 78 additions and 1 deletions
+15 -1
View File
@@ -93,7 +93,21 @@ That's it. `pull` grabs the latest images, `up -d` restarts the containers.
### ⚠️ **Stuck on the old version?**
**If the dashboard still shows old data after updating:**
**If `git pull` fails or `docker compose up` keeps building from source instead of pulling images**, your clone predates a March 2026 repository migration that rewrote commit history. A normal `git pull` cannot fix this. Run:
```bash
# Back up any local config you want to keep (.env, etc.)
cd ..
rm -rf Shadowbroker
git clone https://github.com/BigBodyCobain/Shadowbroker.git
cd Shadowbroker
docker compose pull
docker compose up -d
```
**How to tell if you're affected:** If `docker compose up` shows `RUN apt-get`, `RUN npm ci`, or `RUN pip install` — it's building from source instead of pulling pre-built images. You need a fresh clone.
**Other troubleshooting:**
* **Force re-pull:** `docker compose pull --no-cache`
* **Prune old images:** `docker image prune -f`