-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
42 lines (29 loc) · 1.17 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
up:
docker-compose -f ./environment/docker-compose.yml --env-file ./.env up --remove-orphans -d
build: files-copy
docker-compose -f ./environment/docker-compose.yml --env-file ./.env build
down:
docker-compose -f ./environment/docker-compose.yml down --remove-orphans
db-create:
docker exec -it api-mysql sh -c "mysql -u root < /docker-entrypoint-initdb.d/createdb.sql"
composer-install:
docker exec -it api-php bash -c "composer install"
composer-update:
docker exec -it api-php bash -c "composer update"
files-copy:
cp ./config/.env.local ./.env
cp ./environment/mysql/docker-entrypoint-initdb.d/createdb.sql.example ./environment/mysql/docker-entrypoint-initdb.d/createdb.sql
db-migrate:
docker exec -it api-php sh -c "php artisan migrate"
db-seed:
docker exec -it api-php sh -c "php artisan db:seed"
route-clear:
docker exec -it api-php sh -c "php artisan route:clear"
config-cache:
docker exec -it api-php sh -c "php artisan config:cache"
code-coverage:
docker exec -it api-php sh -c "composer coverage"
nginx-check:
docker exec -it api-nginx sh -c "nginx -T"
host:
sudo -- sh -c -e "echo '127.0.0.1 admin.tinnyapi.local\n127.0.0.1 tinnyapi.local' >> /etc/hosts"