SpaceNinjaServer/UPDATE AND START SERVER.bat
Sainan 2cf50a0d6a
All checks were successful
Build / build (20) (push) Successful in 39s
Build / build (22) (push) Successful in 1m2s
Build / build (18) (push) Successful in 1m6s
Build / build (18) (pull_request) Successful in 43s
Build / build (20) (pull_request) Successful in 59s
Build / build (22) (pull_request) Successful in 1m6s
chore: don't install dev dependenices for basic usage
2025-03-09 13:35:53 +01:00

26 lines
452 B
Batchfile

@echo off
echo Updating SpaceNinjaServer...
git config remote.origin.url https://openwf.io/SpaceNinjaServer.git
git fetch --prune
git reset --hard 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