Skip to content

Commit b477e7f

Browse files
authored
[fix][infra] The command make compose-restart-debug-<svc> did not work (#198)
* fix: The command make compose-restart-debug-<svc> did not work * fix: remove blank space
1 parent 3e9567c commit b477e7f

1 file changed

Lines changed: 26 additions & 26 deletions

File tree

Makefile

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -50,32 +50,6 @@ image%:
5050

5151
compose%:
5252
@case "$*" in \
53-
-up) \
54-
docker volume rm ${COZE_LOOP_NGINX_DATA_VOLUME_NAME} 2>/dev/null || true; \
55-
docker compose \
56-
-f $(DOCKER_COMPOSE_DIR)/docker-compose.yml \
57-
--env-file $(DOCKER_COMPOSE_DIR)/.env \
58-
--profile "*" \
59-
up ;; \
60-
-restart-*) \
61-
svc="$*"; \
62-
svc="$${svc#-restart-}"; \
63-
docker compose \
64-
-f $(DOCKER_COMPOSE_DIR)/docker-compose.yml \
65-
--env-file $(DOCKER_COMPOSE_DIR)/.env \
66-
restart "$$svc" ;; \
67-
-down) \
68-
docker compose \
69-
-f $(DOCKER_COMPOSE_DIR)/docker-compose.yml \
70-
--env-file $(DOCKER_COMPOSE_DIR)/.env \
71-
--profile "*" \
72-
down ;; \
73-
-down-v) \
74-
docker compose \
75-
-f $(DOCKER_COMPOSE_DIR)/docker-compose.yml \
76-
--env-file $(DOCKER_COMPOSE_DIR)/.env \
77-
--profile "*" \
78-
down -v ;; \
7953
-up-dev) \
8054
docker volume rm ${COZE_LOOP_NGINX_DATA_VOLUME_NAME} 2>/dev/null || true; \
8155
docker compose \
@@ -136,6 +110,32 @@ compose%:
136110
--env-file $(DOCKER_COMPOSE_DIR)/.env \
137111
--profile "*" \
138112
down -v ;; \
113+
-up) \
114+
docker volume rm ${COZE_LOOP_NGINX_DATA_VOLUME_NAME} 2>/dev/null || true; \
115+
docker compose \
116+
-f $(DOCKER_COMPOSE_DIR)/docker-compose.yml \
117+
--env-file $(DOCKER_COMPOSE_DIR)/.env \
118+
--profile "*" \
119+
up ;; \
120+
-restart-*) \
121+
svc="$*"; \
122+
svc="$${svc#-restart-}"; \
123+
docker compose \
124+
-f $(DOCKER_COMPOSE_DIR)/docker-compose.yml \
125+
--env-file $(DOCKER_COMPOSE_DIR)/.env \
126+
restart "$$svc" ;; \
127+
-down) \
128+
docker compose \
129+
-f $(DOCKER_COMPOSE_DIR)/docker-compose.yml \
130+
--env-file $(DOCKER_COMPOSE_DIR)/.env \
131+
--profile "*" \
132+
down ;; \
133+
-down-v) \
134+
docker compose \
135+
-f $(DOCKER_COMPOSE_DIR)/docker-compose.yml \
136+
--env-file $(DOCKER_COMPOSE_DIR)/.env \
137+
--profile "*" \
138+
down -v ;; \
139139
-help|*) \
140140
echo "Usage:"; \
141141
echo " # Stable profile"; \

0 commit comments

Comments
 (0)