-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
119 lines (93 loc) · 1.92 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
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
DC := docker-compose
COMPOSER := docker-compose run php-cli-xdebug composer
ARTISAN := docker-compose run php-cli-xdebug php artisan
NODE := docker-compose run node
PHING := docker-compose run php-cli-xdebug vendor/bin/phing
PHP := docker-compose run php-cli-xdebug
NGINX := docker-compose exec nginx
list:
grep '^[^#[:space:]].*:' Makefile
up:
$(DC) up -d
build:
$(DC) build
remove-all:
$(DC) down --rmi local -v --remove-orphans
down:
$(DC) down -v --remove-orphans
start:
$(DC) start
stop:
$(DC) stop
restart:
$(DC) restart
# make logs c=php-cli-xdebug
logs:
$(DC) logs $(CMD)
test:
$(PHP) vendor/bin/phpunit
composer-install:
$(COMPOSER) install
$(COMPOSER) dump-autoload -o
composer-update:
$(COMPOSER) update
$(COMPOSER) dump-autoload -o
dump-autoload:
$(COMPOSER) dump-autoload -o
phing:
$(PHING)
npm-watch:
$(NODE) npm run watch-poll
npm:
$(NODE) sh
npm-dev:
$(NODE) npm run dev
npm-prod:
$(NODE) npm run prod
npm-install:
$(NODE) npm install
npm-update:
$(NODE) npm update
tinker:
# Interactive run laravel code
$(ARTISAN) tinker
db-refresh:
$(ARTISAN) migrate:refresh -n --force
db-refresh-seed:
$(ARTISAN) migrate:refresh --seed -n --force
nginx:
$(NGINX) bash
nginx-reload:
$(NGINX) nginx -s reload
php-cli:
# make:auth
# make:channel
# make:command
# make:controller
# make:event
# make:exception
# make:factory
# make:job
# make:listener
# make:mail
# make:middleware
# make:migration
# make:model
# make:notification
# make:observer
# make:policy
# make:provider
# make:request
# make:resource
# make:rule
# make:seeder
# make:test
# ./artisan make:event UserLoginEvent
# ./artisan make:listener UserEventSubscriber
# ./artisan command:consumer
# ./artisan optimize
# ./artisan cache:clear
# ./artisan route:cache
# ./artisan view:clear
# ./artisan config:cache
$(PHP) bash