mirror of
https://github.com/hibiken/asynqmon.git
synced 2025-01-19 03:05:53 +08:00
19 lines
504 B
Makefile
19 lines
504 B
Makefile
.PHONY: assets build docker
|
|
|
|
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)
|
|
|
|
# Build a release binary.
|
|
build: assets
|
|
go build -o asynqmon ./cmd/asynqmon
|
|
|
|
# Build image and run Asynqmon server (with default settings).
|
|
docker:
|
|
docker build -t asynqmon .
|
|
docker run --rm \
|
|
--name asynqmon \
|
|
-p 8080:8080 \
|
|
asynqmon --redis-addr=host.docker.internal:6379
|