-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathmakefile
70 lines (48 loc) · 1.78 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
install: api-env api-composer-install api-build up sleep api-db api-key api-passport-key api-passport-generate
sleep:
sleep 3
ps:
docker-compose ps
up:
docker-compose up -d
up-recreate:
docker-compose up -d --force-recreate
down:
docker-compose down
forget:
docker-compose down --rmi all --volumes
docker volume rm backend-test_sail-mysql 2>/dev/null
db-shell:
mysql -h 127.0.0.1 -P 3306 -u sail -ppassword
api-build:
USER_ID=$(shell id -u) GROUP_ID=$(shell id -g) docker-compose build --no-cache
api-db:
docker-compose exec -it api php /var/www/html/artisan migrate:fresh
docker-compose exec -it api php /var/www/html/artisan db:seed
api-key:
docker-compose exec -it api php /var/www/html/artisan key:generate
api-env:
cp .env.example .env
api-config-cache:
docker-compose exec -it api php /var/www/html/artisan config:cache
api-composer-install:
composer install --ignore-platform-reqs
api-shell:
docker-compose exec -it api bash -c 'su sail'
api-root-shell:
docker-compose exec -it api bash
api-test:
docker-compose exec -it api php /var/www/html/artisan test
api-test-feature:
docker-compose exec -it api php /var/www/html/artisan test --testsuite=Feature --stop-on-failure
api-test-php-unit:
docker-compose exec -it api php /var/www/html/artisan phpunit
api-build-swagger:
docker-compose exec -it api php /var/www/html/artisan l5-swagger:generate
api-passport-key:
docker-compose exec -it api php /var/www/html/artisan passport:keys --force
api-passport-generate:
docker-compose exec -it api php /var/www/html/artisan passport:client --password --name='Laravel Password Grant Client' --provider=users > .passport
cat .passport
fix-permissions:
docker-compose exec -it api bash -c 'chmod -R 777 /var/www/html/storage/logs && chmod -R 777 /var/www/html/storage/framework'