mirror of
https://github.com/TwiN/gatus.git
synced 2024-12-22 14:41:01 +01:00
228cd4d1fb
* build: refine Makefile targets and build command - Remove `test` from `.PHONY` and add `install`, `run`, and `clean` targets to `.PHONY` - Replace build command to include verbose flag and remove `-mod vendor` option Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com> * docs: refine README structure and update tests - Add a "Table of Contents" section to the README - Reorganize sections within the README, moving "Configuring AWS SES alerts" and "How to change the color thresholds of the response time badge" - Remove "Sponsors" section from the README - Update the test command in the README from `go test ./... -mod vendor` to `go test -v ./...` Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com> --------- Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
42 lines
571 B
Makefile
42 lines
571 B
Makefile
BINARY=gatus
|
|
|
|
.PHONY: install
|
|
install:
|
|
go build -v -o $(BINARY) .
|
|
|
|
.PHONY: run
|
|
run:
|
|
GATUS_CONFIG_PATH=./config.yaml ./$(BINARY)
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
rm $(BINARY)
|
|
|
|
.PHONY: test
|
|
test:
|
|
go test ./... -cover
|
|
|
|
|
|
##########
|
|
# Docker #
|
|
##########
|
|
|
|
docker-build:
|
|
docker build -t twinproduction/gatus:latest .
|
|
|
|
docker-run:
|
|
docker run -p 8080:8080 --name gatus twinproduction/gatus:latest
|
|
|
|
docker-build-and-run: docker-build docker-run
|
|
|
|
|
|
#############
|
|
# Front end #
|
|
#############
|
|
|
|
frontend-build:
|
|
npm --prefix web/app run build
|
|
|
|
frontend-run:
|
|
npm --prefix web/app run serve
|