add context.md, strip LLM timestamps, clippy fixes, simplify deploy target

This commit is contained in:
Fam Zheng
2026-04-10 22:43:52 +01:00
parent c0e12798ee
commit 9d2d2af33f
8 changed files with 91 additions and 23 deletions

View File

@@ -1,4 +1,5 @@
REPO := $(shell pwd)
SUITE := noc
HERA := heradev
HERA_DIR := noc
IMAGE := noc-suite
@@ -28,23 +29,7 @@ docker: build-musl
# ── systemd deploy ──────────────────────────────────────────────────
noc.service: noc.service.in
sed -e 's|@REPO@|$(REPO)|g' -e 's|@PATH@|$(PATH)|g' $< > $@
deploy: test build noc.service
mkdir -p ~/bin ~/.config/systemd/user
systemctl --user stop noc 2>/dev/null || true
install target/release/noc ~/bin/noc
cp noc.service ~/.config/systemd/user/
systemctl --user daemon-reload
systemctl --user enable --now noc
systemctl --user restart noc
SUITE := noc
SUITE_DIR := noc
GITEA_VERSION := 1.23
deploy-suite: build
deploy: test build
ssh $(SUITE) 'mkdir -p ~/bin /data/noc/tools ~/.config/systemd/user && systemctl --user stop noc 2>/dev/null || true'
scp target/release/noc $(SUITE):~/bin/
scp config.suite.yaml $(SUITE):/data/noc/config.yaml