add context.md, strip LLM timestamps, clippy fixes, simplify deploy target
This commit is contained in:
19
Makefile
19
Makefile
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user