From e6c6a89ef014bef56d1078fcc622038d35ee2354 Mon Sep 17 00:00:00 2001 From: Shulhan Date: Mon, 8 Jul 2024 00:25:11 +0700 Subject: internal/cmd/www: an HTTP server for testing web UI The web user interface can be run using existing rescached server by setting the SERVER value in class Rescached (_www/rescached.js). --- Makefile | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index a13040b..eb567c4 100644 --- a/Makefile +++ b/Makefile @@ -75,9 +75,9 @@ lint: -shadow ./... -golangci-lint run \ --presets bugs,metalinter,performance,unused \ + --disable bodyclose \ --disable exhaustive \ --disable musttag \ - --disable bodyclose \ ./... -reuse --suppress-deprecation lint @@ -222,3 +222,12 @@ build-linux-amd64: build deploy-personal-server: build-linux-amd64 rsync --progress _bin/linux_amd64/rescached personal-server:~/bin/rescached ssh personal-server "sudo rsync ~/bin/rescached /usr/bin/rescached; sudo systemctl restart rescached.service" + + +#---- Development. + +## Run web server to test WUI. + +.PHONY: dev.www +dev.www: + go run ./internal/cmd/www -- cgit v1.3