From 18a09dba379a8b95dcfa24fd3c1216b0416e0a30 Mon Sep 17 00:00:00 2001 From: VladYoSlav Date: Tue, 29 Oct 2024 14:25:55 +0300 Subject: [PATCH] fix(tests): volumes folders --- Makefile | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index d7a2941..13c1468 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -.PHONY: env install-deps up open-db pg-revision pg-migrate pg-downgrade celery-worker app init lint test check-types +.PHONY: env volumes install-deps up open-db pg-revision pg-migrate pg-downgrade celery-worker app init lint test check-types ifeq ($(shell test -e '.env' && echo -n yes), yes) include .env @@ -12,6 +12,13 @@ env: @echo >> .env @echo "SECRET_KEY=$$(openssl rand -hex 32)" >> .env +## Create folders for volumes +volumes: + @for volume in postgres rabbitmq uploads; do \ + mkdir -p ./volumes/$$volume; \ + chmod 777 ./volumes/$$volume; \ + done + ## Install dependencies install-deps: poetry install @@ -49,7 +56,7 @@ app: ## Initiate repository init: - make env install-deps + make env install-deps volumes ## Run all formatters and linters in project lint: