aboutsummaryrefslogtreecommitdiff
path: root/justfile
diff options
context:
space:
mode:
Diffstat (limited to 'justfile')
-rw-r--r--justfile14
1 files changed, 7 insertions, 7 deletions
diff --git a/justfile b/justfile
index 6921ac4..16bb53e 100644
--- a/justfile
+++ b/justfile
@@ -52,16 +52,16 @@ retrain: check-auth
# SERVER is an ssh config alias; the agent does auth. No hostnames in this
# file. Run `ship` only after eyeballing report.json — retrain never deploys.
-# Ship a freshly trained model.json to the server
+# Ship a freshly trained model.json to the server (compose mounts
+# ~/fluxrec-data at the container's state dir)
deploy SERVER:
- scp model.json {{SERVER}}:/srv/fluxrec/
+ ssh {{SERVER}} 'mkdir -p ~/fluxrec-data'
+ scp model.json {{SERVER}}:~/fluxrec-data/
-# Restart mechanism pinned at D5 once the container runtime is known;
-# adjust the ssh line below then.
-
-# Bounce the serve container so it picks up the new model
+# Bounce the serve container so it picks up the new model (fluxrec runs
+# under the compose stack at ~/services on the server)
restart SERVER:
- ssh {{SERVER}} 'docker restart fluxrec'
+ ssh {{SERVER}} 'cd ~/services && docker-compose restart fluxrec'
# deploy + restart in one verb
ship SERVER: (deploy SERVER) (restart SERVER)