From a451ff262ae1f6593c595b9d95c81d6dfff26953 Mon Sep 17 00:00:00 2001 From: Hudson Riggs Date: Mon, 3 Nov 2025 17:12:21 -0500 Subject: [PATCH] Price Report Improvements --- .gitea/workflows/deploy.yaml | 4 +- src/public/index.html | 89 +++++++++++++++++++++++++++++++++++- src/routes/api.ts | 8 +++- 3 files changed, 97 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index b4d437c..f1b2ef2 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -41,14 +41,16 @@ jobs: # Reset any local changes (e.g., package-lock.json, build artifacts) and sync to origin/main git fetch --prune origin git reset --hard origin/main - git clean -fdx + git clean -fdx -e .env -e .env.* # Install Node.js deps and build without modifying lockfile "$NPM" ci --no-audit --no-fund "$NPM" run build # Ensure systemd service exists and restart + sudo -n systemctl restart train-id if systemctl list-unit-files | grep -q "${SERVICE}.service"; then sudo systemctl restart "$SERVICE" else + sudo systemctl start "$SERVICE" echo "Warning: ${SERVICE}.service not found; start your process manager manually." fi EOF diff --git a/src/public/index.html b/src/public/index.html index 514745c..015c51c 100644 --- a/src/public/index.html +++ b/src/public/index.html @@ -77,11 +77,17 @@