aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--justfile18
1 files changed, 13 insertions, 5 deletions
diff --git a/justfile b/justfile
index 03f8afe..d4c5e39 100644
--- a/justfile
+++ b/justfile
@@ -52,9 +52,13 @@ retrain: check-auth
deploy SERVER:
scp model.json {{SERVER}}:~/fluxrec-data/
-# Bounce the serve container so it picks up the new model
+# Recreate the serve container (plain `restart` reuses the old command; this applies compose changes too)
restart SERVER:
- ssh {{SERVER}} 'cd ~/services && docker-compose restart fluxrec'
+ ssh {{SERVER}} 'cd ~/services && docker-compose up -d --force-recreate fluxrec'
+
+# Rebuild the serve image from latest git on the server, then recreate
+rebuild SERVER:
+ ssh {{SERVER}} 'cd ~/services/fluxrec && git pull && cd .. && docker-compose build --no-cache fluxrec && docker-compose up -d --force-recreate fluxrec'
# deploy + restart in one verb
ship SERVER: (deploy SERVER) (restart SERVER)
@@ -64,6 +68,10 @@ ship SERVER: (deploy SERVER) (restart SERVER)
refresh SERVER: retrain (ship SERVER)
@echo "refreshed: retrained locally + model shipped to {{SERVER}}"
-# Trigger an out-of-schedule poll (serialized + cooldown-gated server-side)
-poll-now URL:
- curl -sS -X POST {{URL}}/api/poll
+# Serve status: last run, model age, poll counts (REC_URL = the fluxrec serve base URL)
+status REC_URL:
+ curl -sS {{REC_URL}}/api/status | python3 -m json.tool
+
+# Trigger an out-of-schedule poll (serialized + cooldown-gated server-side; REC_URL = fluxrec serve base URL)
+poll-now REC_URL:
+ curl -sS -X POST {{REC_URL}}/api/poll