1
0
Fork 0
mirror of https://github.com/TwiN/gatus.git synced 2024-12-15 17:51:09 +00:00
twin-gatus/Makefile

41 lines
621 B
Makefile
Raw Normal View History

2021-08-24 00:40:13 +00:00
BINARY=gatus
# Because there's a folder called "test", we need to make the target "test" phony
.PHONY: test
2021-08-24 00:40:13 +00:00
install:
go build -mod vendor -o $(BINARY) .
run:
GATUS_CONFIG_FILE=./config.yaml ./$(BINARY)
clean:
rm $(BINARY)
test:
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