-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathMakefile
55 lines (38 loc) · 1019 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
43
44
45
46
47
48
49
50
51
52
53
54
55
up:
@docker compose up
bash:
@docker compose run --rm app bash
build:
@docker compose build
build-up:
@docker compose up --build
createsuperuser:
@docker compose run --rm app python manage.py createsuperuser
down:
@docker compose down --remove-orphans
flush-db:
@docker compose run --rm app python manage.py flush
@make down
format:
@docker compose run --rm app ruff format .
@docker compose run --rm app ruff check . --fix --select I
install:
@pipenv install --dev
lint:
@docker compose run --rm app ruff check .
migrations:
@docker compose run --rm app python manage.py makemigrations
migrate:
@docker compose run --rm app python manage.py migrate
resetdb:
@docker compose run --rm api poetry run python src/manage.py reset_db --noinput
run-command:
@docker compose run --rm app $(command)
shell:
@docker compose run --rm app python manage.py shell
test:
@docker compose run --rm app py.test tests
testcase:
@docker compose run --rm app py.test $(test)
up-d:
@docker compose up -d