diff options
| author | Sam Scholten | 2026-08-30 12:56:11 +1000 |
|---|---|---|
| committer | Sam Scholten | 2026-08-30 12:56:47 +1000 |
| commit | a6af46ae4692276b8ba72082e5a6ad7553f48dfe (patch) | |
| tree | ec5bf1e48e905cd4fec66dd29cf97f01c3eea431 /justfile | |
| parent | 96ab2fcb2ff442698465389d75390afa91629165 (diff) | |
| download | fluxrec-a6af46ae4692276b8ba72082e5a6ad7553f48dfe.tar.gz fluxrec-a6af46ae4692276b8ba72082e5a6ad7553f48dfe.zip | |
justfile: deploy model to ~/fluxrec-data, restart via compose
Diffstat (limited to 'justfile')
| -rw-r--r-- | justfile | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -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) |
