11 lines
461 B
PowerShell
11 lines
461 B
PowerShell
# PowerShell startup script for predictor service
|
|
# Sets required environment variables and starts the service
|
|
|
|
$env:GSN_PREDICTOR_GRIB_DIR = "C:/tmp/grib"
|
|
$env:GSN_PREDICTOR_GRIB_TTL = "48h" # Allow datasets up to 48 hours old
|
|
|
|
Write-Host "Starting predictor service with GRIB directory: $env:GSN_PREDICTOR_GRIB_DIR" -ForegroundColor Green
|
|
Write-Host "Dataset TTL: $env:GSN_PREDICTOR_GRIB_TTL" -ForegroundColor Green
|
|
|
|
# Run the service
|
|
go run cmd/api/main.go
|