X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/36a196056014e663e57176d1dd70f4a5ad8e56ec..14ec0cc12d68e7f15fe3f3bb03c1ecfd06d0e6c3:/Makefile diff --git a/Makefile b/Makefile index 77d345df2..98a68987c 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,8 @@ -.PHONY: deploy test shell +.PHONY: deploy test up down build shell logs restart -UID != id -u -GID != id -g +UID := $(shell id -u) +GID := $(shell id -g) deploy: src/wolnelektury/localsettings.py @@ -23,9 +23,20 @@ test: rm .coverage -shell: - UID=$(UID) GID=$(GID) docker-compose run --rm dev bash +up: + UID=$(UID) GID=$(GID) docker compose up --build -d +down: + docker compose down build: - UID=$(UID) GID=$(GID) docker-compose build dev + 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