-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathMakefile
64 lines (46 loc) · 1.71 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
up: docker-up
init: docker-clear docker-up api-permissions api-env api-composer api-genrsa pause api-migration api-fixtures frontend-env frontend-install frontend-build storage-permissions websocket-env websocket-key websocket-install websocket-start
docker-clear:
docker-compose down --remove-orphans
sudo rm -rf api/var/docker
docker-up:
docker-compose up --build -d
pause:
sleep 5
api-permissions:
sudo chmod 777 api/var
sudo chmod 777 api/var/cache
sudo chmod 777 api/var/log
sudo chmod 777 api/var/mail
sudo chmod 777 storage/public/video
api-env:
docker-compose exec api-php-cli rm -f .env
docker-compose exec api-php-cli ln -sr .env.example .env
api-composer:
docker-compose exec api-php-cli composer install
api-genrsa:
docker-compose exec api-php-cli openssl genrsa -out private.key 2048
docker-compose exec api-php-cli openssl rsa -in private.key -pubout -out public.key
api-migration:
docker-compose exec api-php-cli composer app migrations:migrate
api-fixtures:
docker-compose exec api-php-cli composer app fixtures:load
frontend-env:
docker-compose exec frontend-nodejs rm -f .env.local
docker-compose exec frontend-nodejs ln -sr .env.local.example .env.local
frontend-install:
docker-compose exec frontend-nodejs npm install
frontend-build:
docker-compose exec frontend-nodejs npm run build
storage-permissions:
sudo chown 777 storage/public/video
websocket-env:
docker-compose exec websocket-nodejs rm -f .env
docker-compose exec websocket-nodejs ln -sr .env.example .env
websocket-key:
rm -f ./websocket/public.key
cp ./api/public.key ./websocket/public.key
websocket-install:
docker-compose exec websocket-nodejs npm install
websocket-start:
docker-compose exec websocket-nodejs npm run start