File tree 1 file changed +27
-4
lines changed
1 file changed +27
-4
lines changed Original file line number Diff line number Diff line change 10
10
stop :
11
11
docker compose stop
12
12
13
- down :
14
- docker compose down
15
-
16
13
restart : stop up
17
14
18
15
exec :
@@ -23,8 +20,34 @@ init-symfony:
23
20
24
21
init : build up init-symfony
25
22
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 :
27
49
docker compose down -v
28
50
51
+ # Command to prune unused Docker data
29
52
prune :
30
53
docker system prune -f --volumes
You can’t perform that action at this time.
0 commit comments