Skip to content

Commit e10aa6e

Browse files
committed
Renaming commands
1 parent e9d3aed commit e10aa6e

File tree

1 file changed

+27
-4
lines changed

1 file changed

+27
-4
lines changed

Diff for: Makefile

+27-4
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@ logs:
1010
stop:
1111
docker compose stop
1212

13-
down:
14-
docker compose down
15-
1613
restart: stop up
1714

1815
exec:
@@ -23,8 +20,34 @@ init-symfony:
2320

2421
init: build up init-symfony
2522

26-
rm:
23+
# Command to remove Symfony project files only
24+
rm-symfony:
25+
docker compose exec apache sh -c \
26+
"rm -rf \
27+
./assets \
28+
./bin \
29+
./config \
30+
./migrations \
31+
./public/index.php \
32+
./src \
33+
./templates \
34+
./tests \
35+
./translations \
36+
./var \
37+
./vendor \
38+
./composer.json \
39+
./composer.lock \
40+
./symfony.lock \
41+
./phpunit.xml.dist \
42+
./.env \
43+
./.env.test \
44+
./.gitignore \
45+
./importmap.php"
46+
47+
# Command to remove Docker containers and volumes
48+
rm-containers:
2749
docker compose down -v
2850

51+
# Command to prune unused Docker data
2952
prune:
3053
docker system prune -f --volumes

0 commit comments

Comments
 (0)