diff --git a/Makefile b/Makefile index 4f04db6..2d44efd 100644 --- a/Makefile +++ b/Makefile @@ -5,7 +5,11 @@ ifeq '$(OS)' 'Windows_NT' endif all: build - curl http://127.0.0.1:9999/webapp +ifeq '$(OS)' 'Windows_NT' + powershell -ExecutionPolicy bypass "./tools/restart.ps1" +else + curl http://127.0.0.1:9999/webapp || true +endif build: go build . diff --git a/tools/restart.ps1 b/tools/restart.ps1 new file mode 100644 index 0000000..9da1d6c --- /dev/null +++ b/tools/restart.ps1 @@ -0,0 +1 @@ +curl http://127.0.0.1:9999/webapp *> $null