持久化: 改用NAS路径挂载uploads,移除命名卷

This commit is contained in:
2026-05-24 23:03:50 +08:00
parent 3823f70714
commit 97fe8f64ce
27 changed files with 3447 additions and 6 deletions
+27
View File
@@ -0,0 +1,27 @@
# Start dev server for publish project
$ErrorActionPreference = 'Continue'
$logFile = "D:\Idea Project\publish\dev-server.log"
try {
# Start the process using powershell -Command to invoke pnpm
$proc = Start-Process -FilePath "powershell" `
-ArgumentList "-NoExit", "-Command", "cd 'D:\Idea Project\publish'; pnpm run dev" `
-PassThru `
-WindowStyle Minimized
Write-Output "Started process ID: $($proc.Id)"
# Wait for the server to start
Start-Sleep -Seconds 20
# Check if port 41734 is listening
$portCheck = Get-NetTCPConnection -LocalPort 41734 -ErrorAction SilentlyContinue
if ($portCheck) {
Write-Output "SUCCESS: Server is running on port 41734"
} else {
Write-Output "Server not yet on port 41734, checking all ports..."
Get-NetTCPConnection -State Listen | Where-Object { $_.LocalPort -ge 41000 -and $_.LocalPort -le 42000 } | Select-Object LocalPort
}
} catch {
Write-Output "Error: $($_.Exception.Message)"
}