-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
56 lines (56 loc) · 1.46 KB
/
Makefile
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
up:
docker-compose up -d
build:
docker-compose build --no-cache --force-rm
stop:
docker-compose stop
down:
docker-compose down --remove-orphans
restart:
@make down
@make up
destroy:
docker-compose down --rmi all --volumes --remove-orphans
destroy-volumes:
docker-compose down --volumes --remove-orphans
ps:
docker-compose ps
logs:
docker-compose logs
logs-watch:
docker-compose logs --follow
log-web:
docker-compose logs web
log-web-watch:
docker-compose logs --follow web
log-app:
docker-compose logs app
log-app-watch:
docker-compose logs --follow app
log-db:
docker-compose logs db
log-db-watch:
docker-compose logs --follow db
db:
docker-compose exec db bash
sql:
docker-compose exec db bash -c 'mysql -u phper -psecret laravel_local'
ide-helper:
php artisan clear-compiled
php artisan ide-helper:generate
php artisan ide-helper:meta
php artisan ide-helper:models --nowrite
init:
docker-compose build
docker-compose up -d
docker-compose exec -T app php -r "file_exists('.env') || copy('.env.example', '.env');"
docker-compose exec -T app composer install
docker-compose exec -T app php artisan key:generate
docker-compose exec -T app php artisan storage:link
docker-compose exec -T app chmod -R 777 storage
docker-compose exec -T app chmod -R 777 bootstrap/cache
docker-compose exec -T app php artisan config:cache
dry-cs:
docker-compose run cs fix --dry-run -v --diff --diff-format udiff .
fix-cs:
docker-compose run cs fix -v --diff --diff-format udiff .