SpaceNinjaServer/UPDATE AND START SERVER.bat

25 lines
415 B
Batchfile
Raw Normal View History

@echo off
echo Updating SpaceNinjaServer...
2025-02-02 14:26:13 +01:00
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
call npm run build
call npm run start
echo SpaceNinjaServer seems to have crashed.
:a
pause > nul
goto a