doc: makefile way to start dev redis

This commit is contained in:
efim 2023-11-27 04:57:35 +00:00
parent 42b24b3e14
commit 34679b6079
1 changed files with 6 additions and 1 deletions

View File

@ -8,11 +8,12 @@ TEMPLATES = $(wildcard routes/templates/*.gohtml routes/templates/**/*.gohtml)
TAILWIND_OUT = routes/static/out.css TAILWIND_OUT = routes/static/out.css
TAILWIND_IN = routes/in.css TAILWIND_IN = routes/in.css
TAILWIND_CONF = tailwind.config.js TAILWIND_CONF = tailwind.config.js
REDIS_PORT = 5555
# if we need to run just one time, with all dependencies built first # if we need to run just one time, with all dependencies built first
.PHONY: run .PHONY: run
run: tailwindcss run: tailwindcss
go run . go run . --redisPort $(REDIS_PORT)
# this uses wgo to re-execute 'make run' # this uses wgo to re-execute 'make run'
# which will toggle tailwind out.css build only if necessery # which will toggle tailwind out.css build only if necessery
@ -36,3 +37,7 @@ $(TAILWIND_OUT): $(TEMPLATES) $(TAILWIND_IN) $(TAILWIND_CONF)
test: test:
wgo -file=.go go test ./... wgo -file=.go go test ./...
# end # end
.PHONY: run/redis-server
run/redis-server:
redis-server --port $(REDIS_PORT) --notify-keyspace-events KEA