.PHONY: clean html build restart \ web web-dev kill \ install-service start stop status \ reset-git release clone-demo # ── Website ─────────────────────────────────────────────────────────────────── html: uv run build_html.py build: html # ── Web app ────────────────────────────────────────────────────────────────── web: uv run ifccommit-web web-dev: uv run uvicorn webapp.main:app --reload --host 127.0.0.1 --port 8095 kill: -pkill -f "uvicorn webapp.main:app" 2>/dev/null; true start: build sudo systemctl start ifc-commit restart: build sudo systemctl restart ifc-commit stop: sudo systemctl stop ifc-commit status: journalctl -u ifc-commit -f install-service: sed "s|{WORKDIR}|$(shell pwd)|g; s|{USER}|$(shell whoami)|g" files/systemd/ifc-commit.service | sudo tee /etc/systemd/system/ifc-commit.service sudo ln -sf $(shell pwd)/files/nginx/ifc-commit.conf /etc/nginx/sites-enabled/ifc-commit.conf sudo systemctl daemon-reload sudo systemctl enable --now ifc-commit sudo nginx -t && sudo systemctl reload nginx # ── Release ─────────────────────────────────────────────────────────────────── release: bash scripts/release.sh # ── Housekeeping ────────────────────────────────────────────────────────────── reset-git: bash scripts/reset_demo_repo.sh clean: rm -rf dist/ clone-demo: bash scripts/clone_demo_repo.sh