SpaceNinjaServer/UPDATE AND START SERVER.bat
Sainan bbde7b2141
All checks were successful
Build Docker image / docker (push) Successful in 1m5s
Build / build (push) Successful in 55s
chore: don't change remote/origin url
2025-04-26 08:12:54 +02:00

26 lines
394 B
Batchfile

@echo off
echo Updating SpaceNinjaServer...
git fetch --prune
git stash
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