SpaceNinjaServer/UPDATE AND START SERVER.bat

35 lines
465 B
Batchfile
Raw Normal View History

@echo off
echo Updating SpaceNinjaServer...
echo.
git pull
echo.
if exist static\data\0\ (
echo Updating stripped assets...
cd static\data\0\
echo.
git pull
echo.
cd ..\..\..\
)
echo Updating dependencies...
call npm i
echo.
echo Building files...
call npm run build
echo Starting SpaceNinjaServer...
call npm run start
echo.
echo.
title Error - SpaceNinjaServer
color 0C
echo SpaceNinjaServer seems to have crashed.
:crashMsg
pause > nul
goto crashMsg