Skip to content

Commit 05aafb2

Browse files
committed
feat: automatically enable PHPMyAdmin when starting in development environment
1 parent fe27d44 commit 05aafb2

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Makefile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,12 @@ prod:
9797

9898
start:
9999
@echo "${BLUE}Starting containers...${NC}"
100-
@$(DOCKER_COMPOSE) up -d
100+
@if grep -q "PHP_TARGET=dev" .env; then \
101+
echo "${BLUE}Development environment detected, enabling PHPMyAdmin...${NC}"; \
102+
$(DOCKER_COMPOSE) --profile dev up -d; \
103+
else \
104+
$(DOCKER_COMPOSE) up -d; \
105+
fi
101106
@echo "${GREEN}Containers started!${NC}"
102107

103108
stop:

0 commit comments

Comments
 (0)