Files
SillyTavern_replica/scripts/docker-rebuild.ps1
moranzhi fa6907fb8d feat(studio): 新增 Studio 工作流编辑/运行页,优化顶部三栏对齐
- 后端:项目/运行 API、上下文服务与数据模型
- 前端:Studio 列表、编辑页(R1/R2 布局)、运行页与节点图
- 编辑页顶部:CSS Grid 统一标签行与控件行对齐,项目按钮独立第三行
- Docker 开发配置与文档脚本

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-31 21:24:57 +08:00

18 lines
545 B
PowerShell

# 重新构建并启动指定服务(依赖或 Dockerfile 变更时使用)
param(
[Parameter(Mandatory = $true)]
[ValidateSet("backend", "frontend")]
[string]$Service
)
$ErrorActionPreference = "Stop"
$Root = Split-Path -Parent (Split-Path -Parent $MyInvocation.MyCommand.Path)
Set-Location $Root
Write-Host "Rebuilding and starting $Service..." -ForegroundColor Cyan
docker compose up -d --build $Service
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
Write-Host "Done. $Service rebuilt and running." -ForegroundColor Green