HRM-10/HRM.UI/ClientApp/deploy.ps1
Mohaimen Hasan 838b8d4480 first commit
2026-11-03 13:06:00 +06:00

30 lines
1.1 KiB
PowerShell

# ============================================
# DEPRECATED — use the repo root's deploy.ps1 instead.
#
# This script only builds the Angular frontend and used to require
# a separate manual backend publish step afterward. It has been
# replaced by a single script that does both (backend publish +
# Angular build) and writes everything into a "publish\" folder
# inside the repo instead of an external path.
#
# Run this instead, from the repo root:
# .\deploy.ps1
# ============================================
Write-Host ""
Write-Host "This script is deprecated." -ForegroundColor Yellow
Write-Host "Use '..\..\deploy.ps1' (repo root) instead - it builds the" -ForegroundColor Yellow
Write-Host "backend AND the Angular frontend in one step." -ForegroundColor Yellow
Write-Host ""
$rootScript = Join-Path (Join-Path $PSScriptRoot "..\..") "deploy.ps1"
$rootScript = [System.IO.Path]::GetFullPath($rootScript)
if (Test-Path $rootScript) {
Write-Host "Running $rootScript ..." -ForegroundColor Gray
& $rootScript
} else {
Write-Host "[ERROR] Could not find $rootScript" -ForegroundColor Red
exit 1
}