Files
petwash/run-local.ps1
GukSang.Jin 9c66b6cd82
2026-03-03 16:55:02 +08:00

26 lines
800 B
PowerShell

# Run PetWash API locally without Docker
Write-Host "======================================" -ForegroundColor Cyan
Write-Host "PetWash API Local Run" -ForegroundColor Cyan
Write-Host "======================================" -ForegroundColor Cyan
Write-Host ""
# Set environment to Production to use MySQL
$env:ASPNETCORE_ENVIRONMENT = "Production"
$env:ConnectionStrings__DefaultConnection = "Server=101.132.182.216;Database=petwash;User=root;Password=;Port=3306;CharSet=utf8mb4;"
Write-Host "Environment: Production" -ForegroundColor Yellow
Write-Host "Database: MySQL (101.132.182.216:3306)" -ForegroundColor Yellow
Write-Host ""
# Navigate to API directory
Push-Location "PetWash.Api"
Write-Host "Starting API..." -ForegroundColor Yellow
Write-Host ""
# Run the API
dotnet run
Pop-Location