- 后端:项目/运行 API、上下文服务与数据模型 - 前端:Studio 列表、编辑页(R1/R2 布局)、运行页与节点图 - 编辑页顶部:CSS Grid 统一标签行与控件行对齐,项目按钮独立第三行 - Docker 开发配置与文档脚本 Co-authored-by: Cursor <cursoragent@cursor.com>
22 lines
670 B
PowerShell
22 lines
670 B
PowerShell
# 重启容器(backend / frontend / all),无需重启 Docker Desktop
|
||
param(
|
||
[ValidateSet("backend", "frontend", "all")]
|
||
[string]$Service = "all"
|
||
)
|
||
|
||
$ErrorActionPreference = "Stop"
|
||
$Root = Split-Path -Parent (Split-Path -Parent $MyInvocation.MyCommand.Path)
|
||
Set-Location $Root
|
||
|
||
if ($Service -eq "all") {
|
||
Write-Host "Restarting backend and frontend..." -ForegroundColor Cyan
|
||
docker compose restart backend frontend
|
||
} else {
|
||
Write-Host "Restarting $Service..." -ForegroundColor Cyan
|
||
docker compose restart $Service
|
||
}
|
||
|
||
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
|
||
|
||
Write-Host "Done. Docker Desktop was NOT restarted." -ForegroundColor Green
|