justlog/Makefile
Leppunen 83184cc5f3 Bump dependencies
Add --ignore-optional to yarn to silence errors by swagger-ui-react
2023-03-07 17:55:13 +02:00

26 lines
449 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 --ignore-optional
container:
docker build -t gempir/justlog .
run_container:
docker run -p 8025:8025 --restart=unless-stopped -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