mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2024-12-11 17:07:07 +01:00
a7aa5fccf9
1. Set NODE_ENV to production and skip dev dependencies when running from scripts. 2. Remove pkg leftovers. Indicate current environment instead.
19 lines
576 B
Batchfile
19 lines
576 B
Batchfile
@echo off
|
|
pushd %~dp0
|
|
git --version > nul 2>&1
|
|
if %errorlevel% neq 0 (
|
|
echo Git is not installed on this system. Skipping update.
|
|
echo If you installed with a zip file, you will need to download the new zip and install it manually.
|
|
) 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.
|
|
)
|
|
)
|
|
set NODE_ENV=production
|
|
call npm install --no-audit --no-fund --quiet --omit=dev
|
|
node server.js %*
|
|
pause
|
|
popd
|