-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathjustfile
More file actions
71 lines (53 loc) · 1.38 KB
/
Copy pathjustfile
File metadata and controls
71 lines (53 loc) · 1.38 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
set shell := ["bash", "-cu"]
set windows-shell := ["cmd.exe", "/c"]
# Docker Compose shortcuts
up:
docker-compose up -d
down:
docker-compose down
restart:
docker-compose restart
# Database only
db-up:
docker-compose up -d postgres
db-down:
docker-compose stop postgres
db-logs:
docker-compose logs -f postgres
# Application
app-up:
docker-compose up -d app
app-logs:
docker-compose logs -f app
# Development setup
setup:
docker-compose up -d postgres
@echo "PostgreSQL is starting up..."
@echo "Database will be available at localhost:5432"
@echo "Connection: postgresql://dev_user:dev_password@localhost:5432/ask_app"
# Clean up
clean:
docker-compose down -v
docker-compose rm -f
# View logs
logs:
docker-compose logs -f
# Status
status:
docker-compose ps
api:
uv run uvicorn src.presentation.api.app:create_app --factory --port 8080 --reload
bot:
uv run python -m src.presentation.bot.main
test:
docker compose -f docker-compose-test.yml up -d
uv run pytest -n auto -ss -vv --maxfail=1
docker compose -f docker-compose-test.yml down -v
test-db-up:
docker compose -f docker-compose-test.yml up --build -d
lint:
uv run ruff format src tests
uv run ruff check src tests --fix
generate-i18n:
uv run python scripts/generate_i18n_stubs.py
uv run ruff format src/infrastructure/i18n/types.py