Update Makefile and update UI assets

This commit is contained in:
Ken Hibino
2021-10-13 06:41:52 -07:00
parent 2116015841
commit 2f43cf8c1a
10 changed files with 22 additions and 17 deletions

View File

@@ -1,7 +1,12 @@
.PHONY: build docker
.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:
build: assets
go build -o asynqmon ./cmd/asynqmon
# Build image and run Asynqmon server (with default settings).