-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
52 lines (39 loc) · 836 Bytes
/
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
PORT ?= 8000
start:
php artisan serve --host 0.0.0.0:$(PORT)
setup:
composer install
cp -n .env.example .env || true
php artisan key:gen --ansi
touch database/database.sqlite
php artisan migrate
php artisan db:seed
npm ci
update db:
rm database/database.sqlite
touch database/database.sqlite
php artisan migrate
php artisan db:seed
heroku:
git push heroku main
test:
php artisan test
test-coverage:
XDEBUG_MODE=coverage php artisan test --coverage-clover build/logs/clover.xml
migrate:
php artisan migrate
console:
php artisan tinker
log:
tail -f storage/logs/laravel.log
deploy:
git push heroku
#компиляции ресурсов
watch:
npm run watch
dev:
npm run dev
lint:
composer phpcs -- --standard=PSR12 app/Http/Controllers routes tests
lint-fix:
composer phpcbf app routes tests database