Skip to content

Commit

Permalink
fix(tests): volumes folders
Browse files Browse the repository at this point in the history
  • Loading branch information
vladyoslav committed Oct 29, 2024
1 parent c40f71e commit 18a09db
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 18a09db

Please sign in to comment.