mirror of
https://github.com/SillyTavern/SillyTavern-Launcher.git
synced 2026-01-26 08:59:45 +00:00
Merge pull request #114 from SillyTavern/fix/output-obscure
Rewrite startup command to remove stderr obstruction
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user