This commit is contained in:
Jack Mechem 2026-03-31 21:54:28 -07:00
parent 57bfbce24b
commit 6c6ee030cd
3 changed files with 21 additions and 1 deletions

View file

@ -1,3 +1,23 @@
PKG := server-dash-api
USER := server-dash-api
BIN := ./result/bin/$(PKG)
ARGS ?=
.PHONY: build run logs clean
build:
nix build
run: build
sudo -u $(USER) $(BIN) $(ARGS)
logs:
journalctl -u $(PKG) -f
clean:
rm -f result
deploy:
cargo build --release
sudo cp target/release/server-dash-api /var/lib/server-dash-api/server-dash-api