doc: makefile way to start dev redis
This commit is contained in:
parent
42b24b3e14
commit
34679b6079
7
Makefile
7
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
|
||||
|
|
Loading…
Reference in New Issue