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.
This commit is contained in:
Gabriel Luiz Freitas Almeida 2025-09-08 18:57:33 -03:00
parent 762152934e
commit 1a1911a34e

View file

@ -42,7 +42,7 @@ dev:
docker-compose up -d docker-compose up -d
@echo "✅ Services started!" @echo "✅ Services started!"
@echo " Backend: http://localhost:8000" @echo " Backend: http://localhost:8000"
@echo " Frontend: http://localhost:3000" @echo " Frontend: http://localhost:3000"
@echo " Langflow: http://localhost:7860" @echo " Langflow: http://localhost:7860"
@echo " OpenSearch: http://localhost:9200" @echo " OpenSearch: http://localhost:9200"
@echo " Dashboards: http://localhost:5601" @echo " Dashboards: http://localhost:5601"
@ -93,7 +93,7 @@ clean: stop
backend: backend:
@echo "🐍 Starting backend locally..." @echo "🐍 Starting backend locally..."
@if [ ! -f .env ]; then echo "⚠️ .env file not found. Copy .env.example to .env first"; exit 1; fi @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: frontend:
@echo "⚛️ Starting frontend locally..." @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 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." @echo "Indices reset. Restart backend to recreate."
# Flow management # Flow management
flow-upload: flow-upload:
@echo "📁 Uploading flow to Langflow..." @echo "📁 Uploading flow to Langflow..."
@if [ -z "$(FLOW_FILE)" ]; then echo "Usage: make flow-upload FLOW_FILE=path/to/flow.json"; exit 1; fi @if [ -z "$(FLOW_FILE)" ]; then echo "Usage: make flow-upload FLOW_FILE=path/to/flow.json"; exit 1; fi