添加一键启动脚本

This commit is contained in:
ShaoHua
2026-01-22 23:15:09 +08:00
parent c7a9a267ff
commit 67713e9ad5
2 changed files with 30 additions and 1 deletions
+19
View File
@@ -0,0 +1,19 @@
$ScriptPath = Split-Path -Parent $MyInvocation.MyCommand.Definition
Set-Location $ScriptPath
Write-Host "Starting Back-end (HttpApi.Host)..." -ForegroundColor Green
# Start backend in a new window
Start-Process powershell -ArgumentList '-NoExit', '-Command', 'dotnet run --project "src/Hua.Abp.Demo.HttpApi.Host/Hua.Abp.Demo.HttpApi.Host.csproj"'
Write-Host "Starting Front-end (Angular)..." -ForegroundColor Green
Set-Location "$ScriptPath/angular"
# Start frontend in a new window using existing script if available
if (Test-Path "start.ps1") {
Start-Process powershell -ArgumentList '-NoExit', '-File', ".\start.ps1"
} else {
Start-Process powershell -ArgumentList '-NoExit', '-Command', "yarn; yarn start"
}
Set-Location $ScriptPath
Write-Host "🚀 Services are starting in new windows..." -ForegroundColor Cyan