-
Notifications
You must be signed in to change notification settings - Fork 379
/
Taskfile.yml
157 lines (125 loc) · 3.44 KB
/
Taskfile.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
version: '3'
tasks:
for-linux-env:
cmds:
- echo "UID=$(id -u)" >> .env
- echo "GID=$(id -g)" >> .env
install:
cmds:
- task: build
- task: up
- docker compose exec app composer install
- docker compose exec app cp .env.example .env
- docker compose exec app php artisan key:generate
- docker compose exec app php artisan storage:link
- docker compose exec app chmod -R 777 storage bootstrap/cache
- task: fresh
create-project:
cmds:
- mkdir src
- task: build
- task: up
- docker compose exec app composer create-project --prefer-dist laravel/laravel .
- docker compose exec app php artisan key:generate
- docker compose exec app php artisan storage:link
- docker compose exec app chmod -R 777 storage bootstrap/cache
- task: fresh
build:
cmds:
- docker compose build
up:
cmds:
- docker compose up --detach
down:
cmds:
- docker compose down --remove-orphans
down-v:
cmds:
- docker compose down --remove-orphans --volumes
stop:
cmds:
- docker compose stop
restart:
cmds:
- task: down
- task: up
destroy:
cmds:
- docker compose down --rmi all --volumes --remove-orphans
remake:
cmds:
- task: destroy
- task: install
ps:
cmds:
- docker compose ps
web:
cmds:
- docker compose exec web bash
app:
cmds:
- docker compose exec app bash
tinker:
cmds:
- docker compose exec app php artisan tinker
dump:
cmds:
- docker compose exec app php artisan dump-server
test:
cmds:
- docker compose exec app php artisan test
migrate:
cmds:
- docker compose exec app php artisan migrate
fresh:
cmds:
- docker compose exec app php artisan migrate:fresh --seed
seed:
cmds:
- docker compose exec app php artisan db:seed
dacapo:
cmds:
- docker compose exec app php artisan dacapo
rollback-test:
cmds:
- docker compose exec app php artisan migrate:fresh
- docker compose exec app php artisan migrate:refresh
optimize:
cmds:
- docker compose exec app php artisan optimize
optimize-clear:
cmds:
- docker compose exec app php artisan optimize:clear
cache:
cmds:
- docker compose exec app composer dump-autoload --optimize
- docker compose exec app php artisan optimize
- docker compose exec app php artisan event:cache
- docker compose exec app php artisan view:cache
cache-clear:
cmds:
- docker compose exec app composer clear-cache
- docker compose exec app php artisan optimize:clear
- docker compose exec app php artisan event:clear
- docker compose exec app php artisan view:clear
db:
cmds:
- docker compose exec db bash
sql:
cmds:
- docker compose exec db bash -c 'mysql -u $$MYSQL_USER -p$$MYSQL_PASSWORD $$MYSQL_DATABASE'
redis:
cmds:
- docker compose exec redis redis-cli
ide-helper:
cmds:
- docker compose exec app php artisan clear-compiled
- docker compose exec app php artisan ide-helper:generate
- docker compose exec app php artisan ide-helper:meta
- docker compose exec app php artisan ide-helper:models --write --reset
pint:
cmds:
- docker compose exec app ./vendor/bin/pint --verbose
pint-test:
cmds:
- docker compose exec app ./vendor/bin/pint --verbose --test