diff options
| author | Sam Scholten | 2026-10-15 08:33:30 +1000 |
|---|---|---|
| committer | Sam Scholten | 2026-10-15 08:33:30 +1000 |
| commit | 0ffbed9e3823a13d41e241556af450976d771217 (patch) | |
| tree | 161e25dca1103cc6cc02db97319d9d8f76a991f7 | |
| parent | c2dd299c2f2ebb1c4d5614087402d38173ed93ec (diff) | |
| download | fluxrec-0ffbed9e3823a13d41e241556af450976d771217.tar.gz fluxrec-0ffbed9e3823a13d41e241556af450976d771217.zip | |
.
| -rw-r--r-- | justfile | 18 |
1 files changed, 13 insertions, 5 deletions
@@ -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 |
