This commit is contained in:
@@ -89,6 +89,10 @@ echo -e "${YELLOW}Starting Notification Service (port 8005)...${NC}"
|
||||
python -m uvicorn services.notification_service.main:app --port 8005 &
|
||||
NOTIFICATION_PID=$!
|
||||
|
||||
echo -e "${YELLOW}Starting Nutrition Service (port 8006)...${NC}"
|
||||
python -m uvicorn services.nutrition_service.main:app --port 8006 &
|
||||
NUTRITION_PID=$!
|
||||
|
||||
# Wait a bit for services to start
|
||||
sleep 5
|
||||
|
||||
@@ -102,6 +106,7 @@ echo $EMERGENCY_PID > emergency_service.pid
|
||||
echo $LOCATION_PID > location_service.pid
|
||||
echo $CALENDAR_PID > calendar_service.pid
|
||||
echo $NOTIFICATION_PID > notification_service.pid
|
||||
echo $NUTRITION_PID > nutrition_service.pid
|
||||
echo $GATEWAY_PID > api_gateway.pid
|
||||
|
||||
echo -e "${GREEN}🎉 All services started successfully!${NC}"
|
||||
@@ -112,6 +117,7 @@ echo -e " 🚨 Emergency Service: http://localhost:8002"
|
||||
echo -e " 📍 Location Service: http://localhost:8003"
|
||||
echo -e " 📅 Calendar Service: http://localhost:8004"
|
||||
echo -e " 🔔 Notification Service: http://localhost:8005"
|
||||
echo -e " 🍎 Nutrition Service: http://localhost:8006"
|
||||
echo -e "${GREEN}📖 API Documentation: http://localhost:8000/docs${NC}"
|
||||
|
||||
# Keep script running and show logs
|
||||
@@ -127,6 +133,7 @@ cleanup() {
|
||||
if [ -f "location_service.pid" ]; then kill "$(cat location_service.pid)" 2>/dev/null && rm location_service.pid; fi
|
||||
if [ -f "calendar_service.pid" ]; then kill "$(cat calendar_service.pid)" 2>/dev/null && rm calendar_service.pid; fi
|
||||
if [ -f "notification_service.pid" ]; then kill "$(cat notification_service.pid)" 2>/dev/null && rm notification_service.pid; fi
|
||||
if [ -f "nutrition_service.pid" ]; then kill "$(cat nutrition_service.pid)" 2>/dev/null && rm nutrition_service.pid; fi
|
||||
if [ -f "api_gateway.pid" ]; then kill "$(cat api_gateway.pid)" 2>/dev/null && rm api_gateway.pid; fi
|
||||
|
||||
echo -e "${GREEN}✅ All services stopped${NC}"
|
||||
|
||||
Reference in New Issue
Block a user