mirror of
https://github.com/StanGirard/quivr.git
synced 2024-11-22 20:09:40 +03:00
bdb115ad0a
This pull request adds the pyinstrument package and updates the Makefile and backend code. The pyinstrument package is used for profiling and the Makefile and backend code have been modified to support profiling.
31 lines
855 B
Makefile
31 lines
855 B
Makefile
test:
|
|
pytest backend/
|
|
|
|
dev:
|
|
DOCKER_BUILDKIT=1 docker compose -f docker-compose.dev.yml build backend-core
|
|
DOCKER_BUILDKIT=1 docker compose -f docker-compose.dev.yml up --build
|
|
|
|
dev-saas:
|
|
docker compose -f docker-compose-dev-saas-supabase.yml build backend-core
|
|
docker compose -f docker-compose-dev-saas-supabase.yml up --build
|
|
|
|
dev-saas-back:
|
|
docker compose -f docker-compose-dev-only-back-saas-supabase.yml build backend-core
|
|
docker compose -f docker-compose-dev-only-back-saas-supabase.yml up --build backend-core
|
|
|
|
dev-stan:
|
|
docker compose -f docker-compose-no-frontend.dev.yml up --build
|
|
|
|
prod:
|
|
docker compose build backend-core
|
|
docker compose -f docker-compose.yml up --build
|
|
|
|
test-type:
|
|
@if command -v python3 &>/dev/null; then \
|
|
python3 -m pyright; \
|
|
else \
|
|
python -m pyright; \
|
|
fi
|
|
|
|
front:
|
|
cd frontend && yarn build && yarn start
|