#!/bin/bash
set -e

echo "Starting development environment for {{PROJECT_NAME}}..."

# Start docker services
if [ -f "docker-compose.yml" ]; then
  echo "Starting Docker services..."
  docker-compose up -d
fi

# Start services with overmind if available
if command -v overmind &> /dev/null && [ -f "Procfile" ]; then
  echo "Starting services with overmind..."
  overmind start
else
  echo "Install overmind for process management: brew install overmind"
  echo "Or run services manually from Procfile"
fi
