SpaceNinjaServer/UPDATE AND START SERVER.bat
Sainan 3442f15c6d
All checks were successful
Build / build (20) (push) Successful in 38s
Build / build (22) (push) Successful in 56s
Build Docker image / docker (push) Successful in 32s
Build / build (18) (push) Successful in 51s
fix(starter-bat): don't start if build step has failed (#1069)
Reviewed-on: #1069
2025-03-03 05:48:54 -08:00

26 lines
441 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
call npm run build
if %errorlevel% == 0 (
call npm run start
echo SpaceNinjaServer seems to have crashed.
)
:a
pause > nul
goto a