X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/102acc0b6eb715826f26b5082611604cf6ebe240..4cc06fc092836d96eb52ac12c691f1baa41f04b3:/Makefile?ds=sidebyside 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