forked from Coyote-OSS/coyote
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
52 lines (38 loc) · 1.36 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
.PHONY: all update-repo dependency-install file-permission migration seed assets-dev assets-production install-es install-passport
install: dependency-install file-permission migration seed install-assets assets-production cache-config key-generate install-es install-passport
install-dev: dependency-install file-permission migration seed install-assets assets-dev key-generate install-es install-passport
update: update-repo dependency-install migration assets-production cache-config
update-dev: update-repo dependency-install migration assets-dev
help:
@echo 'make install -- download dependencies and install'
@echo 'make install-dev -- download dependencies and install without minifing assets'
@echo 'make update-dev -- pull repo and rebuild assets'
@echo 'make update -- pull repo and rebuild assets without minifing'
update-repo:
git reset --hard
git pull origin master
dependency-install:
composer install
file-permission:
chmod -R 775 storage/
chmod 775 bootstrap/cache/
migration:
php artisan migrate --force
seed:
php artisan db:seed
install-assets:
yarn install
assets-production:
yarn run prod
assets-dev:
yarn run dev
cache-config:
php artisan config:cache
php artisan route:cache
key-generate:
php artisan key:generate
install-es:
php artisan es:create --force
php artisan es:index --force
install-passport:
php artisan passport:install