2021-08-24 00:40:13 +00:00
|
|
|
BINARY=gatus
|
|
|
|
|
2024-01-29 06:12:14 +00:00
|
|
|
.PHONY: install
|
2021-08-24 00:40:13 +00:00
|
|
|
install:
|
2024-01-29 06:12:14 +00:00
|
|
|
go build -v -o $(BINARY) .
|
2021-08-24 00:40:13 +00:00
|
|
|
|
2024-01-29 06:12:14 +00:00
|
|
|
.PHONY: run
|
2021-08-24 00:40:13 +00:00
|
|
|
run:
|
2023-01-08 22:53:37 +00:00
|
|
|
GATUS_CONFIG_PATH=./config.yaml ./$(BINARY)
|
2021-08-24 00:40:13 +00:00
|
|
|
|
2024-01-29 06:12:14 +00:00
|
|
|
.PHONY: clean
|
2021-08-24 00:40:13 +00:00
|
|
|
clean:
|
|
|
|
rm $(BINARY)
|
|
|
|
|
2024-01-29 06:12:14 +00:00
|
|
|
.PHONY: test
|
2021-08-24 00:40:13 +00:00
|
|
|
test:
|
2022-06-07 22:04:56 +00:00
|
|
|
go test ./... -cover
|
2021-08-24 00:40:13 +00:00
|
|
|
|
|
|
|
|
|
|
|
##########
|
|
|
|
# Docker #
|
|
|
|
##########
|
|
|
|
|
2021-01-26 01:56:02 +00:00
|
|
|
docker-build:
|
|
|
|
docker build -t twinproduction/gatus:latest .
|
|
|
|
|
2021-08-24 00:40:13 +00:00
|
|
|
docker-run:
|
|
|
|
docker run -p 8080:8080 --name gatus twinproduction/gatus:latest
|
|
|
|
|
|
|
|
docker-build-and-run: docker-build docker-run
|
|
|
|
|
2021-01-30 04:10:11 +00:00
|
|
|
|
2021-08-24 00:40:13 +00:00
|
|
|
#############
|
|
|
|
# Front end #
|
|
|
|
#############
|
|
|
|
|
|
|
|
frontend-build:
|
2021-01-26 01:56:02 +00:00
|
|
|
npm --prefix web/app run build
|
|
|
|
|
2021-08-24 00:40:13 +00:00
|
|
|
frontend-run:
|
2021-02-01 06:37:56 +00:00
|
|
|
npm --prefix web/app run serve
|