Spaces:
Running
Running
File size: 876 Bytes
5c43797 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
@echo off
pushd %~dp0
git --version > nul 2>&1
if %errorlevel% neq 0 (
echo [91mGit is not installed on this system.[0m
echo Install it from https://git-scm.com/downloads
goto end
) else (
if not exist .git (
echo [91mNot running from a Git repository. Reinstall using an officially supported method to get updates.[0m
echo See: https://docs.sillytavern.app/installation/windows/
goto end
)
call git pull --rebase --autostash
if %errorlevel% neq 0 (
REM incase there is still something wrong
echo [91mThere were errors while updating.[0m
echo See the update FAQ at https://docs.sillytavern.app/usage/update/#common-update-problems
goto end
)
)
set NODE_ENV=production
call npm install --no-audit --no-fund --loglevel=error --no-progress --omit=dev
node server.js %*
:end
pause
popd
|