Browse Source

chore: restart os-api if running

ntorga 10 months ago
parent
commit
4bede6a3ee
1 changed files with 1 additions and 0 deletions
  1. 1 0
      Makefile

+ 1 - 0
Makefile

@@ -7,6 +7,7 @@ dev:
 build:
 	templ generate -path $(UI_DIR)
 	CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o ./bin/os ./os.go
+	if podman ps | grep -q "os"; then podman exec os /bin/bash -c "supervisorctl restart os-api"; fi
 
 run:
 	/var/infinite/os serve