-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_dev.sh
More file actions
22 lines (16 loc) · 749 Bytes
/
run_dev.sh
File metadata and controls
22 lines (16 loc) · 749 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash
echo "========================================================"
echo " VelocityGate - Hybrid Run Script (Local + Docker)"
echo "========================================================"
# Ensure script stops on error
set -e
echo "1. Cleaning up existing Docker infrastructure (and resetting volumes to fix auth errors)..."
cd docker || { echo "Error: docker/ directory not found"; exit 1; }
docker-compose down -v
echo "2. Starting Infrastructure (Postgres, Redis, Prometheus, Grafana)..."
docker-compose up -d postgres redis prometheus grafana
echo "3. Waiting for database to initialize (15 seconds)..."
sleep 15
echo "4. Starting API Gateway Application (Local)..."
cd ..
./mvnw spring-boot:run -Dspring-boot.run.profiles=dev