From 1a1911a34eaade70b8852d9c942fedbafea9d17c Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Mon, 8 Sep 2025 18:57:33 -0300 Subject: [PATCH] Update Makefile for improved command execution and formatting This commit modifies the Makefile to ensure consistent command execution by changing the directory context for the backend startup command. Additionally, it corrects formatting in the output messages for better readability. These changes contribute to a more robust development environment. --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 74df8d40..fe76467a 100644 --- a/Makefile +++ b/Makefile @@ -42,7 +42,7 @@ dev: docker-compose up -d @echo "✅ Services started!" @echo " Backend: http://localhost:8000" - @echo " Frontend: http://localhost:3000" + @echo " Frontend: http://localhost:3000" @echo " Langflow: http://localhost:7860" @echo " OpenSearch: http://localhost:9200" @echo " Dashboards: http://localhost:5601" @@ -93,7 +93,7 @@ clean: stop backend: @echo "🐍 Starting backend locally..." @if [ ! -f .env ]; then echo "⚠️ .env file not found. Copy .env.example to .env first"; exit 1; fi - cd src && uv run python main.py + uv run python src/main.py frontend: @echo "⚛️ Starting frontend locally..." @@ -187,7 +187,7 @@ db-reset: curl -X DELETE "http://localhost:9200/knowledge_filters" -u admin:$$(grep OPENSEARCH_PASSWORD .env | cut -d= -f2) || true @echo "Indices reset. Restart backend to recreate." -# Flow management +# Flow management flow-upload: @echo "📁 Uploading flow to Langflow..." @if [ -z "$(FLOW_FILE)" ]; then echo "Usage: make flow-upload FLOW_FILE=path/to/flow.json"; exit 1; fi