mirror of
https://github.com/furyhawk/ai_agent.git
synced 2026-07-20 09:45:44 +00:00
feat: update Makefile to set backend URL and adjust server ports
This commit is contained in:
@@ -101,3 +101,4 @@ logs/
|
||||
Thumbs.db
|
||||
|
||||
# Project specific
|
||||
backend/models_cache/
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user