CLAUDE.md: how the server runs, the systemd user service aimsight-app, and its restart

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
maximeandClaude Opus 5.5 committed 2026-11-20 08:34:42 +01:00
1 parent 2be232b91d
commit f8b27b13e6
1 file changed
+1
+1
View File
@@ -9,6 +9,7 @@ aimsight-app: the control station of the AIMsight diagnostic (`README.md`): the
- **The benchmark**: `python3 detectors/bench/regression.py --labels labeling/auto --data data` (~1 min); the score of a range: `python3 detectors/bench/score.py data/<STATION> --labels labeling/auto/<STATION>.jsonl --from YYYY-MM-DD --to YYYY-MM-DD` (`--to` excluded). - **The benchmark**: `python3 detectors/bench/regression.py --labels labeling/auto --data data` (~1 min); the score of a range: `python3 detectors/bench/score.py data/<STATION> --labels labeling/auto/<STATION>.jsonl --from YYYY-MM-DD --to YYYY-MM-DD` (`--to` excluded).
- **The pumping**: in `~/aimsight-data` (`extraction/pump.sh`, VS Code tasks **pump**, **pump a range**), read-only on the platform; user guide `~/aimsight-data/extraction/README.md`. Claude may launch it on small ranges; a long range or a history, outside busy hours. - **The pumping**: in `~/aimsight-data` (`extraction/pump.sh`, VS Code tasks **pump**, **pump a range**), read-only on the platform; user guide `~/aimsight-data/extraction/README.md`. Claude may launch it on small ranges; a long range or a history, outside busy hours.
- **Check a change of the app**: `.venv/bin/python app/server/check.py`, then `cd app/web && npm run build` and launch the server. The labels: `python3 labeling/validate.py`. - **Check a change of the app**: `.venv/bin/python app/server/check.py`, then `cd app/web && npm run build` and launch the server. The labels: `python3 labeling/validate.py`.
- **The server**: the systemd user service `aimsight-app` (`~/.config/systemd/user/aimsight-app.service`, `README.md` "Run as a service") serves http://127.0.0.1:8770, started with the workstation; it keeps the code it loaded: a change of the server or of the page is seen only after `systemctl --user restart aimsight-app` (it rebuilds the page itself), which interrupts nothing only when no analysis, optimization or support is running; its log, `journalctl --user -u aimsight-app`. A test server beside it: `AIMSIGHT_PORT=8771 .venv/bin/python app/server/server.py --no-browser`.
Rules: Rules:
- Every time is in UTC. - Every time is in UTC.