asynqmon/Makefile

24 lines
644 B
Makefile
Raw Normal View History

2021-11-07 06:23:10 +08:00
.PHONY: api assets build docker
2021-10-13 21:41:52 +08:00
NODE_PATH ?= $(PWD)/ui/node_modules
assets:
@if [ ! -d "$(NODE_PATH)" ]; then cd ./ui && yarn install --modules-folder $(NODE_PATH); fi
cd ./ui && yarn build --modules-folder $(NODE_PATH)
2021-11-07 06:23:10 +08:00
# This target skips the overhead of building UI assets.
# Intended to be used during development.
api:
go build -o api ./cmd/asynqmon
# Build a release binary.
2021-10-13 21:41:52 +08:00
build: assets
go build -o asynqmon ./cmd/asynqmon
2021-01-06 07:24:11 +08:00
# Build image and run Asynqmon server (with default settings).
docker:
docker build -t asynqmon .
docker run --rm \
--name asynqmon \
-p 8080:8080 \
2021-06-07 19:09:14 +08:00
asynqmon --redis-addr=host.docker.internal:6379