-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
35 lines (28 loc) · 825 Bytes
/
justfile
File metadata and controls
35 lines (28 loc) · 825 Bytes
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
# List all just commands
default:
just --list
# Build the docker image
build:
docker compose build
docker compose run --rm app npm install
# Run the Django app and dependecies services in development mode
up:
docker compose up -d
# Stop all the containers
down:
docker compose down
# Enter in the container shell
shell:
docker compose run --rm app sh
# Run manage.py inside the container
mng +command:
docker compose run --rm app python manage.py {{ command }}
# Run the tests
test:
docker compose run --rm app ruff check
docker compose run --rm app python manage.py collectstatic --noinput --ignore="css/input.css"
docker compose run --rm app pytest
# Run Ruff for fix errors
format:
docker compose run --rm app ruff check --fix
docker compose run --rm app ruff format