Makefile
This commit is contained in:
parent
57bfbce24b
commit
6c6ee030cd
3 changed files with 21 additions and 1 deletions
20
Makefile
20
Makefile
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue