Skip to content

Commit 0dd8eaf

Browse files
Benoit NgoNgob
authored andcommitted
Adding new commands in makefile, allowing to restart only the front stack
1 parent cbabf30 commit 0dd8eaf

File tree

1 file changed

+27
-1
lines changed

1 file changed

+27
-1
lines changed

Makefile

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,20 @@ restart: down up
9090
.PHONY: frestart
9191
frestart: fdown fup
9292

93+
.PHONY: stop-front
94+
stop-front: ;\
95+
DOCKER_BUILDKIT=1 docker compose stop front
96+
97+
.PHONY: rm-front
98+
rm-front: ;\
99+
DOCKER_BUILDKIT=1 docker compose rm front -f
100+
101+
.PHONY: start-front
102+
start-front: ;\
103+
DOCKER_BUILDKIT=1 docker compose up front -d
104+
105+
.PHONY: reset-front
106+
reset-front: stop-front rm-front start-front
93107

94108
.PHONY: dumpautoload
95109
dumpautoload: ;\
@@ -126,7 +140,19 @@ frontcheck: ;\
126140

127141
# Run all CI tools
128142
.PHONY: ci
129-
ci: cs-fix phpstan phpmd frontlint
143+
ci: cs-fix phpstan phpmd cs-check frontlint
144+
145+
146+
.PHONY: drop-db-dev
147+
drop-db-dev: ;\
148+
docker compose exec back bin/console doctrine:schema:drop --full-database --force
149+
150+
.PHONY: fixtures-dev
151+
fixtures-dev: ;\
152+
docker compose exec back bin/console doctrine:fixtures:load -n
153+
154+
.PHONY: reset-db
155+
reset-db: drop-db-dev migrate fixtures-dev
130156

131157
.PHONY: dump
132158
dump: ;\

0 commit comments

Comments
 (0)