Spaces:
Sleeping
Sleeping
| .PHONY: help install install-dev test run demo roi docker docker-run clean | |
| PORT ?= 8000 | |
| help: | |
| "SupportCopilot — make targets" | |
| " make install install runtime dependencies" | |
| " make install-dev install dev dependencies (incl. pytest)" | |
| " make test run the test suite (offline, no API keys)" | |
| " make demo launch the app locally and print the URL" | |
| " make run alias for 'make demo'" | |
| " make roi print the ROI report to the terminal" | |
| " make docker build the Docker image" | |
| " make docker-run run the Docker image on port $(PORT)" | |
| install: | |
| pip install -r requirements.txt | |
| install-dev: | |
| pip install -r requirements-dev.txt | |
| test: | |
| LLM_PROVIDER=stub python -m pytest -q | |
| roi: | |
| python -m supportcopilot.cli roi | |
| demo: | |
| "" | |
| " SupportCopilot is starting (offline stub — no API key needed)." | |
| " Chat: http://localhost:$(PORT)/" | |
| " Dashboard: http://localhost:$(PORT)/dashboard" | |
| "" | |
| python -m uvicorn supportcopilot.app:app --host 0.0.0.0 --port $(PORT) --reload | |
| run: demo | |
| docker: | |
| docker build -t supportcopilot:latest . | |
| docker-run: | |
| docker run --rm -p $(PORT):8000 supportcopilot:latest | |
| clean: | |
| find . -type d -name __pycache__ -exec rm -rf {} + 2>/dev/null || true | |
| find . -type d -name .pytest_cache -exec rm -rf {} + 2>/dev/null || true | |