2025-08-28 13:16:19 +08:00
|
|
|
|
2026-03-19 04:11:30 +08:00
|
|
|
.PHONY: up up-lite down logs lint format
|
2025-10-11 01:07:45 +08:00
|
|
|
|
|
|
|
|
PYTEST_ARGS ?=
|
2025-08-28 13:16:19 +08:00
|
|
|
|
2026-03-17 19:46:09 +08:00
|
|
|
up:
|
2025-12-02 16:47:21 +08:00
|
|
|
@if [ ! -f .env ]; then \
|
|
|
|
|
echo "Error: .env file not found. Please create it from .env.template"; \
|
|
|
|
|
exit 1; \
|
|
|
|
|
fi
|
2025-08-28 13:16:19 +08:00
|
|
|
docker compose up -d
|
|
|
|
|
|
2026-03-17 19:46:09 +08:00
|
|
|
down:
|
2025-08-28 13:16:19 +08:00
|
|
|
docker compose down
|
|
|
|
|
|
2026-03-19 04:11:30 +08:00
|
|
|
up-lite:
|
|
|
|
|
@if [ ! -f .env ]; then \
|
|
|
|
|
echo "Error: .env file not found. Please create it from .env.template"; \
|
|
|
|
|
exit 1; \
|
|
|
|
|
fi
|
|
|
|
|
LITE_MODE=true docker compose up -d postgres redis minio api worker web
|
|
|
|
|
|
2025-08-28 13:16:19 +08:00
|
|
|
logs:
|
|
|
|
|
@docker logs --tail=50 api-dev
|
2025-08-28 23:08:24 +08:00
|
|
|
@echo "\n\nBranch: $$(git branch --show-current)"
|
2025-08-28 13:16:19 +08:00
|
|
|
@echo "Commit ID: $$(git rev-parse HEAD)"
|
|
|
|
|
@echo "System: $$(uname -a)"
|
2025-09-01 22:37:03 +08:00
|
|
|
|
|
|
|
|
######################
|
|
|
|
|
# LINTING AND FORMATTING
|
|
|
|
|
######################
|
|
|
|
|
|
2025-09-20 22:53:37 +08:00
|
|
|
format:
|
2026-03-19 12:09:17 +08:00
|
|
|
cd backend && uv run ruff format package
|
|
|
|
|
cd backend && uv run ruff check package --fix
|
|
|
|
|
cd backend && uv run ruff check --select I package --fix
|
2026-03-26 13:53:35 +08:00
|
|
|
cd web && pnpm run format
|
|
|
|
|
cd web && pnpm run lint
|