Merge pull request #114 from SillyTavern/fix/output-obscure

Rewrite startup command to remove stderr obstruction
This commit is contained in:
deffcolony
2025-08-02 13:13:30 +02:00
committed by GitHub

View File

@@ -11,11 +11,8 @@ if "%1"=="ssl" (
set NODE_CMD=node server.js
)
REM Start the Node.js server and log the output using PowerShell Tee-Object, suppressing specific warnings
REM Start the Node.js server and log the output using PowerShell Tee-Object
echo Starting Node.js server with command: %NODE_CMD%
powershell -Command "& {%NODE_CMD% 2>&1 | Where-Object {$_ -notmatch 'Security has been overridden'} | Tee-Object -FilePath '%logs_st_console_path%'}"
echo Node.js server started.
pause
REM Pause to keep the window open
cmd /c "%NODE_CMD%" 2>&1 | powershell -Command "$input | Tee-Object -FilePath '%logs_st_console_path%'"
echo Node.js server stopped.
pause