Files
usda-vision/dev-start.sh
salirezav 8e7b5b054f Add development scripts and Docker Compose configuration for local environment setup
- Introduced `dev-start.sh`, `dev-stop.sh`, `dev-logs.sh`, and `dev-shell.sh` for managing the development environment.
- Added `docker-compose.dev.yml` to define services for API and web applications with appropriate configurations.
- Updated `README.md` to include instructions for development mode and commands for managing the environment.
2025-09-11 14:24:21 -04:00

33 lines
947 B
Bash
Executable File

#!/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"