- 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.
28 lines
792 B
Bash
Executable File
28 lines
792 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# USDA Vision Development Stop Script
|
|
# This script stops the development environment
|
|
|
|
set -e
|
|
|
|
echo "🛑 Stopping 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
|
|
|
|
echo "🔄 Stopping development containers..."
|
|
|
|
# Stop the development environment
|
|
docker compose -f docker-compose.dev.yml down
|
|
|
|
echo ""
|
|
echo "✅ Development environment stopped successfully"
|
|
echo ""
|
|
echo "💡 Tip: Use './dev-start.sh' to start the development environment again"
|
|
echo "💡 Tip: Use './dev-logs.sh' to view logs from the last run"
|