-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
53 lines (41 loc) · 1.47 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
build:
docker compose build --no-cache
up:
docker compose up
upd:
docker compose up -d
migrate:
docker compose run app python manage.py migrate
makemigrations:
docker compose run app python manage.py makemigrations
stop:
docker compose stop
test:
docker compose run app pytest
statics:
docker compose run app python manage.py collectstatic
createsuperuser:
docker compose run app python manage.py createsuperuser
bash:
docker compose run app bash
lint:
docker compose run app ruff check .
format:
docker compose run app ruff format .
help:
@echo " Makefile options"
@echo " |"
@echo " |_ help (default) - Show this message"
@echo " |"
@echo " |_ build - Build the docker image"
@echo " |_ up - Run the project with compose"
@echo " |_ upd - Run the project with compose and -d option"
@echo " |_ migrate - Run migrations"
@echo " |_ makemigrations - Create migrations"
@echo " |_ stop - Stop the docker containers"
@echo " |_ test - Run the tests with pytest"
@echo " |_ statics - Collect statics (useful to use the admin site)"
@echo " |_ createsuperuser - Create super user to access the admin"
@echo " |_ bash - Run the bash inside the container"
@echo " |_ lint - Check lint with RUFF"
@echo " |_ format - Format the code with RUFF"