github.com/wfusion/gofusion@v1.1.14/common/infra/asynq/asynqmon/Makefile (about)

     1  .PHONY: api assets build docker
     2  
     3  NODE_PATH ?= $(PWD)/ui/node_modules
     4  assets:
     5  	@if [ ! -d "$(NODE_PATH)"  ]; then cd ./ui && yarn install --modules-folder $(NODE_PATH); fi
     6  	cd ./ui && yarn build --modules-folder $(NODE_PATH)
     7  
     8  # This target skips the overhead of building UI assets.
     9  # Intended to be used during development.
    10  api:
    11  	go build -o api ./cmd/asynqmon
    12  
    13  # Build a release binary.
    14  build: assets
    15  	go build -o asynqmon ./cmd/asynqmon
    16  
    17  # Build image and run Asynqmon server (with default settings).
    18  docker:
    19  	docker build -t asynqmon .
    20  	docker run --rm \
    21  		--name asynqmon \
    22  		-p 8080:8080 \
    23  		asynqmon --redis-addr=host.docker.internal:6379