justlog/Makefile
2021-11-23 12:13:46 +01:00

26 lines
456 B
Makefile

full: docs web build
build:
go build
run: build
./justlog
run_web:
cd web && yarn start
web: init_web
cd web && yarn build
init_web:
cd web && yarn install
container:
docker build -t gempir/justlog .
run_container:
docker run -p 8025:8025 --restart=unless-stopped --user $(id -u):$(id -g) -v $(PWD)/config.json:/etc/justlog.json -v $(PWD)/logs:/logs gempir/justlog:latest
docs:
swagger generate spec -m -o ./web/public/swagger.json -w api