Files
SillyTavern_replica/scripts/docker-restart.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

22 lines
670 B
PowerShell
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 重启容器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