2021-08-24 02:40:13 +02:00
|
|
|
BINARY=gatus
|
|
|
|
|
2022-06-08 00:04:56 +02:00
|
|
|
# Because there's a folder called "test", we need to make the target "test" phony
|
|
|
|
.PHONY: test
|
|
|
|
|
2021-08-24 02:40:13 +02:00
|
|
|
install:
|
|
|
|
go build -mod vendor -o $(BINARY) .
|
|
|
|
|
|
|
|
run:
|
2023-01-08 23:53:37 +01:00
|
|
|
GATUS_CONFIG_PATH=./config.yaml ./$(BINARY)
|
2021-08-24 02:40:13 +02:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm $(BINARY)
|
|
|
|
|
|
|
|
test:
|
2022-06-08 00:04:56 +02:00
|
|
|
go test ./... -cover
|
2021-08-24 02:40:13 +02:00
|
|
|
|
|
|
|
|
|
|
|
##########
|
|
|
|
# Docker #
|
|
|
|
##########
|
|
|
|
|
2021-01-26 02:56:02 +01:00
|
|
|
docker-build:
|
|
|
|
docker build -t twinproduction/gatus:latest .
|
|
|
|
|
2021-08-24 02:40:13 +02:00
|
|
|
docker-run:
|
|
|
|
docker run -p 8080:8080 --name gatus twinproduction/gatus:latest
|
|
|
|
|
|
|
|
docker-build-and-run: docker-build docker-run
|
|
|
|
|
2021-01-30 05:10:11 +01:00
|
|
|
|
2021-08-24 02:40:13 +02:00
|
|
|
#############
|
|
|
|
# Front end #
|
|
|
|
#############
|
|
|
|
|
|
|
|
frontend-build:
|
2021-01-26 02:56:02 +01:00
|
|
|
npm --prefix web/app run build
|
|
|
|
|
2021-08-24 02:40:13 +02:00
|
|
|
frontend-run:
|
2021-02-01 07:37:56 +01:00
|
|
|
npm --prefix web/app run serve
|