# Event Service 실행 스크립트

$env:SERVER_PORT="8081"
$env:DB_HOST="20.249.177.232"
$env:DB_PORT="5432"
$env:DB_NAME="eventdb"
$env:DB_USERNAME="eventuser"
$env:DB_PASSWORD="Hi5Jessica!"
$env:REDIS_HOST="localhost"
$env:REDIS_PORT="6379"
$env:REDIS_PASSWORD=""
$env:KAFKA_BOOTSTRAP_SERVERS="20.249.182.13:9095,4.217.131.59:9095"
$env:DDL_AUTO="update"
$env:LOG_LEVEL="DEBUG"
$env:SQL_LOG_LEVEL="DEBUG"
$env:CONTENT_SERVICE_URL="http://localhost:8082"
$env:DISTRIBUTION_SERVICE_URL="http://localhost:8084"
$env:JWT_SECRET="kt-event-marketing-jwt-secret-key-for-development-only-minimum-256-bits-required"

Write-Host "Starting Event Service on port 8081..." -ForegroundColor Green
Write-Host "Logs will be saved to logs/event-service.log" -ForegroundColor Yellow
./gradlew event-service:bootRun 2>&1 | Tee-Object -FilePath logs/event-service.log
