Skip to content

Commit

Permalink
Merge pull request #98 from tdameros/97-fix-volume-dist-error-when-fo…
Browse files Browse the repository at this point in the history
…lder-does-not-yet-exist-in-front-microservice

create dist directory with the Makefile before building the front
  • Loading branch information
tdameros authored Jan 25, 2024
2 parents 2a5b528 + c29f9d6 commit bbe3adc
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,16 @@ USER_MANAGEMENT_DB_VOLUME_PATH = user_management/docker/volumes/db
MATCHMAKING_DB_VOLUME_PATH = matchmaking/docker/volumes/db
TOURNAMENT_DB_VOLUME_PATH = tournament/docker/volumes/db

FRONT_DIST_VOLUME_PATH = front/app/dist

DB_VOLUMES = $(FRONT_DB_VOLUME_PATH) \
$(USER_MANAGEMENT_DB_VOLUME_PATH) \
$(MATCHMAKING_DB_VOLUME_PATH) \
$(TOURNAMENT_DB_VOLUME_PATH)

VOLUMES = $(FRONT_DIST_VOLUME_PATH) \
$(DB_VOLUMES)

.PHONY: all
all:
$(MAKE) up
Expand Down Expand Up @@ -50,8 +55,8 @@ re: fclean

.PHONY: create_volume_path
create_volume_path:
mkdir -p $(DB_VOLUMES)
mkdir -p $(VOLUMES)

.PHONY: delete_volume_path
delete_volume_path:
$(RM) -r $(DB_VOLUMES)
$(RM) -r $(VOLUMES)

0 comments on commit bbe3adc

Please sign in to comment.