SpaceNinjaServer/UPDATE AND START SERVER.bat
Sainan b0499a62aa
All checks were successful
Build / build (push) Successful in 49s
Build Docker image / docker (push) Successful in 1m6s
chore: use 'git checkout -f' instead of 'git reset --hard' to avoid loss
2025-06-01 12:16:16 +02:00

26 lines
393 B
Batchfile

@echo off
echo Updating SpaceNinjaServer...
git fetch --prune
git stash
git checkout -f origin/main
if exist static\data\0\ (
echo Updating stripped assets...
cd static\data\0\
git pull
cd ..\..\..\
)
echo Updating dependencies...
call npm i --omit=dev
call npm run build
if %errorlevel% == 0 (
call npm run start
echo SpaceNinjaServer seems to have crashed.
)
:a
pause > nul
goto a