From 34679b6079cb30e090e3d733b7595561fb2aea0c Mon Sep 17 00:00:00 2001 From: efim Date: Mon, 27 Nov 2023 04:57:35 +0000 Subject: [PATCH] doc: makefile way to start dev redis --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index b89c667..514ddac 100644 --- a/Makefile +++ b/Makefile @@ -8,11 +8,12 @@ TEMPLATES = $(wildcard routes/templates/*.gohtml routes/templates/**/*.gohtml) TAILWIND_OUT = routes/static/out.css TAILWIND_IN = routes/in.css TAILWIND_CONF = tailwind.config.js +REDIS_PORT = 5555 # if we need to run just one time, with all dependencies built first .PHONY: run run: tailwindcss - go run . + go run . --redisPort $(REDIS_PORT) # this uses wgo to re-execute 'make run' # which will toggle tailwind out.css build only if necessery @@ -36,3 +37,7 @@ $(TAILWIND_OUT): $(TEMPLATES) $(TAILWIND_IN) $(TAILWIND_CONF) test: wgo -file=.go go test ./... # end + +.PHONY: run/redis-server +run/redis-server: + redis-server --port $(REDIS_PORT) --notify-keyspace-events KEA