-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
52 lines (44 loc) · 1.07 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
setup:
composer install
cp .env.example .env
php artisan key:generate
yarn
make authorize
php artisan passport:install
authorize:
rm -rf ./storage/logs/laravel.log
touch ./storage/logs/laravel.log
sudo chmod -R 777 ./storage/
sudo chmod -R 777 ./vendor/
sudo chmod -R 777 ./bootstrap/cache/
composer dump-autoload
php artisan cache:clear
update:
rm -rf ./storage/logs/laravel.log
touch ./storage/logs/laravel.log
sudo chmod -R 777 ./storage
composer install
composer dump-autoload
php artisan cache:clear
php artisan migrate
yarn
make testApi
refresh:
php artisan cache:clear
php artisan config:clear
php artisan view:clear
php artisan route:clear
php artisan optimize:clear
composer dump-autoload
migrate:
php artisan migrate:fresh --seed
php artisan passport:install
testApi:
./vendor/bin/phpunit ./tests/Api/.
testSpecific:
./vendor/bin/phpunit --filter ${class} tests/Api/${path}
testSpecificMethod:
./vendor/bin/phpunit --filter ${method} ${class} tests/Api/${path}
setupPassport:
php artisan passport:install
php artisan passport:client --client