-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (24 loc) · 925 Bytes
/
Copy pathMakefile
File metadata and controls
32 lines (24 loc) · 925 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
.PHONY: help local-up local-down backend-test frontend-check validate deploy-backend deploy-frontend
help:
@echo "local-up Start PostgreSQL, backend, and frontend"
@echo "local-down Stop the local stack"
@echo "backend-test Run backend tests"
@echo "frontend-check Run frontend lint and build"
@echo "validate Validate scripts and Compose configuration"
@echo "deploy-backend Manually trigger backend production deployment"
@echo "deploy-frontend Manually trigger frontend production deployment"
local-up:
docker compose up --build -d
local-down:
docker compose down
backend-test:
cd backend && python -m pytest
frontend-check:
cd frontend && npm ci && npm run lint && npm run build
validate:
bash -n scripts/*.sh scripts/nutrivalue-deploy
docker compose config --quiet
deploy-backend:
./scripts/manual-deploy.sh backend main
deploy-frontend:
./scripts/manual-deploy.sh frontend main