forked from adfinis/customer-center
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
39 lines (27 loc) · 962 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
install: install-frontend install-backend knex-migrations setup-vault setup-timed timed-test-data
install-frontend:
cd frontend; yarn
install-backend:
cd backend; yarn
test: test-backend test-frontend
test-backend:
cd backend; yarn test
test-frontend:
cd frontend; yarn test
knex-migrations:
docker-compose exec backend make -C /usr/src/app migrations
setup-vault:
./tools/docker/vault/scripts/init.sh
setup-timed:
docker-compose exec timedbackend ./manage.py migrate
docker-compose exec timedbackend ./manage.py createsuperuser
timed-test-data:
docker-compose exec postgres psql -U test -d timed -f /tmp/timed-test-data.sql
setup-gitlab-runner:
docker-compose exec gitlab-runner gitlab-runner register
serve-local:
docker-compose stop frontend
cd frontend/;ember serve --proxy http://localhost:8080
deploy: install-frontend install-backend
(cd frontend && yarn build)
(cd backend && make migrations && yarn build && pm2 restart index)