#!/bin/bash # USDA Vision Development Startup Script # This script starts the development environment with proper logging and debugging set -e echo "🚀 Starting USDA Vision Development Environment" echo "==============================================" # Check if docker-compose.dev.yml exists if [ ! -f "docker-compose.dev.yml" ]; then echo "❌ Error: docker-compose.dev.yml not found!" echo "Please make sure you're in the project root directory." exit 1 fi # Check if .env file exists for web app if [ ! -f "management-dashboard-web-app/.env" ]; then echo "⚠️ Warning: management-dashboard-web-app/.env not found!" echo "You may need to create it from .env.example" echo "Continuing anyway..." fi echo "📦 Building and starting development containers..." echo "" # Start the development environment docker compose -f docker-compose.dev.yml up --build echo "" echo "🛑 Development environment stopped"