From a6af46ae4692276b8ba72082e5a6ad7553f48dfe Mon Sep 17 00:00:00 2001 From: Sam Scholten Date: Sun, 30 Aug 2026 12:56:11 +1000 Subject: justfile: deploy model to ~/fluxrec-data, restart via compose --- justfile | 14 +++++++------- 1 file 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) -- cgit v1.2.3