#!/bin/bash # XPEDITIS Backend - Development Runner echo "Starting XPEDITIS Backend in Development Mode..." echo "Loading environment variables from .env file..." # Check if .env file exists if [ ! -f .env ]; then echo "ERROR: .env file not found!" echo "Please copy .env.example to .env and configure your variables:" echo " cp .env.example .env" echo " # Then edit .env with your values" exit 1 fi # Load .env file set -o allexport source .env set +o allexport echo "Environment variables loaded successfully" echo "Starting application with profile: ${SPRING_PROFILES_ACTIVE:-dev}" # Start the application ./mvnw spring-boot:run -Dspring-boot.run.profiles=${SPRING_PROFILES_ACTIVE:-dev}