Blame Raw
Cohee · 51ad27fb · · 27 lines (889 B)
1 contributor
1@echo off
2pushd %~dp0
3git --version > nul 2>&1
4if %errorlevel% neq 0 (
5 echo Git is not installed on this system.
6 echo Install it from https://git-scm.com/downloads
7 goto end
8) else (
9 if not exist .git (
10 echo Not running from a Git repository. Reinstall using an officially supported method to get updates.
11 echo See: https://docs.sillytavern.app/installation/windows/
12 goto end
13 )
14 call git pull --rebase --autostash
15 if %errorlevel% neq 0 (
16 REM incase there is still something wrong
17 echo There were errors while updating.
18 echo See the update FAQ at https://docs.sillytavern.app/installation/updating/
19 goto end
20 )
21)
22set NODE_ENV=production
23call npm install --no-save --no-audit --no-fund --loglevel=error --no-progress --omit=dev --ignore-scripts
24node server.js %*
25:end
26pause
27popd