feat: update Makefile to set backend URL and adjust server ports

This commit is contained in:
2026-06-11 19:48:08 +08:00
parent 6f7c6e4d31
commit e358f7cfa2
2 changed files with 5 additions and 2 deletions
+1
View File
@@ -101,3 +101,4 @@ logs/
Thumbs.db
# Project specific
backend/models_cache/
+4 -2
View File
@@ -3,6 +3,8 @@
# === Container Runtime Detection ============================================
# Auto-detect podman or docker. Override at invocation:
# make DOCKER=podman DOCKER_COMPOSE="podman compose" dev
export BACKEND_URL ?= http://localhost:8033
DOCKER := $(shell command -v podman 2>/dev/null || command -v docker 2>/dev/null || echo docker)
ifneq ($(findstring podman,$(DOCKER)),)
DOCKER_COMPOSE := podman compose
@@ -188,10 +190,10 @@ db-history:
# === Server ===
run:
uv run --directory backend ai_agent server run --reload
uv run --directory backend ai_agent server run --reload --host 0.0.0.0 --port 8033
run-prod:
uv run --directory backend ai_agent server run --host 0.0.0.0 --port 8000
uv run --directory backend ai_agent server run --host 0.0.0.0 --port 8033
routes:
uv run --directory backend ai_agent server routes