-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
46 lines (38 loc) · 863 Bytes
/
Copy pathjustfile
File metadata and controls
46 lines (38 loc) · 863 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
36
37
38
39
40
41
42
43
44
45
46
# Show the help message (default)
[group('core')]
@help:
just --list
# Start the stack
[group('core')]
dev: compose-down compose-up
# Stop the stack
[group('core')]
stop: compose-down
alias c := compose
# Run a compose command
[group('core')]
compose +args="":
docker compose {{ args }}
# Show logs using docker compose
[group('core')]
logs target="app":
docker compose logs -f {{ target }}
# Automatically fix linting errors and format code
[group('core')]
fix:
#!/usr/bin/env bash
cd app
uv run ruff check --fix
uv run ruff check --select I --fix
uv run ruff format
cd ..
just --format --unstable
# Starts the stack
[private]
compose-up:
docker compose up
# Stops the stack and removes all volumes and orphans
[private]
compose-down:
docker compose kill --remove-orphans
docker compose down --volumes