Organized

This commit is contained in:
Jason Thistlethwaite
2026-10-17 20:50:35 -04:00
parent bd26c8894f
commit 9ee9eb3ec6
130 changed files with 24172 additions and 140 deletions
+24
View File
@@ -0,0 +1,24 @@
#!/usr/bin/env bash
# Dev/LAN CS ticket sync → cache-dev, then rematerialize queues.
set -euo pipefail
cd /home/jason/projects/redmine
export REDMINE_API_KEY="${REDMINE_API_KEY:?REDMINE_API_KEY required}"
CACHE=/home/jason/projects/redmine/cache-dev/redmine_tickets
./redmine_tickets.py \
--base-url http://192.168.50.170 \
--project customer-service \
--cache-dir "$CACHE" \
sync \
--remote-status-id '*' \
--remote-updated-since 6h \
--run-log \
--run-log-keep 20 \
--quiet
./redmine_tickets.py \
--base-url http://192.168.50.170 \
--project customer-service \
--cache-dir "$CACHE" \
materialize-queues \
--config queues.example.json \
>/dev/null
+6
View File
@@ -0,0 +1,6 @@
#!/usr/bin/env bash
# Optional slower contacts mirror refresh (prod cache). Run less often than ticket sync.
set -euo pipefail
cd /home/jason/projects/redmine
#export REDMINE_API_KEY="${REDMINE_API_KEY:?REDMINE_API_KEY required}"
./bin/rtl contacts-sync --quiet
+19
View File
@@ -0,0 +1,19 @@
#!/usr/bin/env bash
# Prod CS ticket sync → durable cache, then rematerialize local queues.
# Window: 6h after warm cache (bump to 30d only for catch-up).
set -euo pipefail
cd /home/jason/projects/redmine
#CACHE=/home/jason/projects/redmine/cache/redmine_tickets
./bin/rtl \
sync \
--remote-status-id '*' \
--remote-updated-since 1d \
--run-log \
--run-log-keep 20 \
--quiet
# Refresh symlink queues for external agents/scripts (local-only).
./bin/rtl \
materialize-queues \
# --config queues.example.json \
>/dev/null