X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/5c14b2f1216cf266efd63f4de84e3f83bb99c9ff..4cc06fc092836d96eb52ac12c691f1baa41f04b3:/Makefile?ds=sidebyside diff --git a/Makefile b/Makefile index d43ff1e6d..98a68987c 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,8 @@ -.PHONY: deploy test +.PHONY: deploy test up down build shell logs restart + + +UID := $(shell id -u) +GID := $(shell id -g) deploy: src/wolnelektury/localsettings.py @@ -17,3 +21,22 @@ test: mv ../htmlcov.new ../htmlcov coverage report rm .coverage + + +up: + UID=$(UID) GID=$(GID) docker compose up --build -d + +down: + docker compose down + +build: + UID=$(UID) GID=$(GID) docker compose build + +shell: + UID=$(UID) GID=$(GID) docker compose run --rm web bash + +logs: + docker compose logs -f + +restart: + docker compose restart