diff --git a/Makefile b/Makefile index 98a9197..2f37317 100644 --- a/Makefile +++ b/Makefile @@ -31,7 +31,16 @@ test: ## build: build a binary .PHONY: build build: test - go build -o ./app -v + sudo rm -f mikayla-moving + go build -o ./mikayla-moving -v + sudo cp mikayla-moving /usr/bin/mikayla-moving + +# restart: rebuild and restart the systemd service running the project +.PHONY: restart +restart: + sudo systemctl stop mikayla-moving + make build + sudo systemctl restart mikayla-moving ## docker-build: build project into a docker container image .PHONY: docker-build diff --git a/main.go b/main.go index d4c35b2..1e852d5 100644 --- a/main.go +++ b/main.go @@ -47,7 +47,7 @@ func main() { boxActions := routes.Boxes(html) boxItemActions := routes.BoxItems(html) - + router.Handle("/items/edit", web.Action(itemActions.Edit)) router.Handle("/items/delete", web.Action(itemActions.Delete)) diff --git a/templates/components/parsed-packing-stage.html b/templates/components/parsed-packing-stage.html index 4d4da4f..f4342ba 100644 --- a/templates/components/parsed-packing-stage.html +++ b/templates/components/parsed-packing-stage.html @@ -1,6 +1,6 @@