-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
51 lines (34 loc) · 1.17 KB
/
Makefile
File metadata and controls
51 lines (34 loc) · 1.17 KB
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
setup:
docker compose up --build
up:
docker compose up
up_d:
docker compose up -d
up_sim:
docker compose -f poduction-sim.docker-compose.yml up --build
terminal:
docker exec -it heatedmaps_dev-backend-1 /bin/bash
feeddb:
docker exec -it heatedmaps_dev-backend-1 python manage.py feed_db
loaddata:
docker exec -it heatedmaps_dev-backend-1 python manage.py loaddata fixtures/categories.json fixtures/users.json fixtures/products.json fixtures/orders.json fixtures/reviews.json
flush:
docker exec -it heatedmaps_dev-backend-1 python manage.py flush --noinput
db:
psql -h localhost -p 5432 -d heatedmaps_dev_db -U heatedmaps_dev_db_user -W
make_migrations:
docker exec -it heatedmaps_dev-backend-1 python manage.py makemigrations
migrate:
docker exec -it heatedmaps_dev-backend-1 python manage.py migrate
down:
docker compose down
schema:
python manage.py spectacular --file schema.yml
test:
docker compose run backend python -m pytest --reuse-db
unit_test:
docker compose run backend python -m pytest --reuse-db -k test_cart.py
.PHONY: dev-image up bash down test rm build push
# must remove before pushing
load_terrafrom_vars:
export $(cat terraform.env | xargs)