-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
executable file
·60 lines (39 loc) · 1.23 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
up: docker-build
#make init - начальная команда
init: docker-clear docker-build api-composer perms api-env frontend-env frontend-install frontend-build
#После запустить в другой вкладке: make api-migration
docker-clear:
sudo docker-compose down --remove-orphans
sudo rm -rf api/var/docker
docker-build:
sudo docker-compose up --build -d
docker-ps:
sudo docker-compose ps
docker-down:
sudo docker-compose down
perms:
sudo chmod 777 api -R
sudo chmod 777 frontend -R
api-env:
sudo docker-compose exec api-php-cli rm -f .env
sudo docker-compose exec api-php-cli ln -sr .env.example .env
api-composer:
sudo docker-compose exec api-php-cli composer install
api-migration:
sudo docker-compose exec api-php-cli php artisan migrate
frontend-env:
sudo docker-compose exec frontend-nodejs rm -f .env
sudo docker-compose exec frontend-nodejs ln -sr .env.example .env
frontend-install:
sudo docker-compose exec frontend-nodejs npm install
frontend-build:
sudo docker-compose exec frontend-nodejs npm run watch
#up-frontend:
# cd frontend; echo "I'm in frontend"; \
npm install; \
npm run serve; \
cd ..; \
#up-api:
# cd api; echo "I'm in api"; \
composer update; \
php artisan serve; \