mirror of
https://github.com/TwiN/gatus.git
synced 2024-11-25 09:24:04 +01:00
3059e3e028
* Revert "Revert "feat: Support multiple configuration files" (#395)"
This reverts commit 87740e74a6
.
* feat: Properly implement support for config directory
41 lines
621 B
Makefile
41 lines
621 B
Makefile
BINARY=gatus
|
|
|
|
# Because there's a folder called "test", we need to make the target "test" phony
|
|
.PHONY: test
|
|
|
|
install:
|
|
go build -mod vendor -o $(BINARY) .
|
|
|
|
run:
|
|
GATUS_CONFIG_PATH=./config.yaml ./$(BINARY)
|
|
|
|
clean:
|
|
rm $(BINARY)
|
|
|
|
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
|