mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Merge pull request #351 from sanskar-mk2/update-bat
add batch file to update and start
This commit is contained in:
16
UpdateAndStart.bat
Normal file
16
UpdateAndStart.bat
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
@echo off
|
||||||
|
pushd %~dp0
|
||||||
|
git --version > nul 2>&1
|
||||||
|
if %errorlevel% neq 0 (
|
||||||
|
echo Git is not installed on this system. Skipping update.
|
||||||
|
) else (
|
||||||
|
call git pull --rebase --autostash
|
||||||
|
if %errorlevel% neq 0 (
|
||||||
|
REM incase there is still something wrong
|
||||||
|
echo There were errors while updating. Please download the latest version manually.
|
||||||
|
)
|
||||||
|
)
|
||||||
|
call npm install
|
||||||
|
node server.js
|
||||||
|
pause
|
||||||
|
popd
|
Reference in New Issue
Block a user