1- .PHONY : help build up down logs shell exec pull-model test clean fireform
1+ .PHONY : help build up down logs shell exec pull-model test clean fireform logs-app logs-ollama logs-frontend super-clean
22
33help :
44 @printf ' %s\n' \
@@ -16,16 +16,25 @@ help:
1616 @echo " make up - Start all containers"
1717 @echo " make down - Stop all containers"
1818 @echo " make logs - View container logs"
19+ @echo " make logs-app - View API container logs"
20+ @echo " make logs-frontend - View frontend container logs"
21+ @echo " make logs-ollama - View Ollama container logs"
1922 @echo " make shell - Open Python shell in app container"
2023 @echo " make exec - Execute Python script in container"
2124 @echo " make pull-model - Pull Mistral model into Ollama"
2225 @echo " make test - Run tests"
2326 @echo " make clean - Remove containers"
2427 @echo " make super-clean - [CAUTION] Use carefully. Cleans up ALL stopped containers, networks, build cache..."
2528
26- fireform : build up
27- @echo " Launching interactive shell in the app container..."
28- docker compose exec app /bin/bash
29+ # Fix #382 — pull-model is now part of the main setup flow
30+ # Mistral is pulled automatically before you need it
31+ fireform : build up pull-model
32+ @echo " "
33+ @echo " ✅ FireForm is ready!"
34+ @echo " API: http://localhost:8000"
35+ @echo " API Docs: http://localhost:8000/docs"
36+ @echo " "
37+ @echo " Run 'make logs' to view live logs, 'make down' to stop."
2938
3039build :
3140 docker compose build
@@ -45,17 +54,25 @@ logs-app:
4554logs-ollama :
4655 docker compose logs -f ollama
4756
57+ logs-frontend :
58+ docker compose logs -f frontend
59+
4860shell :
4961 docker compose exec app /bin/bash
5062
63+ # Start the FastAPI server inside the running container
64+ run :
65+ docker compose exec app uvicorn api.main:app --host 0.0.0.0 --port 8000 --reload
66+
5167exec :
5268 docker compose exec app python3 src/main.py
5369
5470pull-model :
5571 docker compose exec ollama ollama pull mistral
5672
73+ # Fix — correct test directory (was src/test/ which doesn't exist)
5774test :
58- docker compose exec app python3 -m pytest src/test/
75+ docker compose exec app python3 -m pytest tests/ -v
5976
6077clean :
6178 docker compose down -v
0 commit comments