forked from bcgov/gwells
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
42 lines (28 loc) · 807 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
40
41
42
.DELETE_ON_ERROR:
################
# General Jobs #
################
default: vue down
test: test-node test-django
###################
# Individual jobs #
###################
prep:
docker-compose pull
docker-compose build
down:
docker-compose down --volumes
vue: prep
docker-compose up
test-node:
docker exec -ti gwells_frontend_1 /bin/bash -c "cd /app/frontend/; npm run test:unit -- --runInBand"
test-django:
docker exec -ti gwells_backend_1 /bin/bash -c "cd /app/backend/; python manage.py test --noinput"
admin-django:
docker exec -ti gwells_backend_1 /bin/bash -c "cd /app/backend; python manage.py createsuperuser"
backend:
docker-compose pull backend
docker-compose build backend
docker-compose up backend
psql:
docker-compose exec db /bin/bash -c "psql -U gwells -d gwells"