Updating script for dummies
- Added some empty lines to make the console look little bit cleaner and less messy - Added text when it starts building the files and when the server actually starts - On error the window title gets changed ("Error - SpaceNinjaServer") and the color of the console turns red (though I can remove the color, if it's unhelpful/annoying), so that any idiot realizes immediately when something went wrong See screenshot for comparison
This commit is contained in:
parent
7bb857a17a
commit
f551f354fc
@ -1,22 +1,34 @@
|
|||||||
@echo off
|
@echo off
|
||||||
|
|
||||||
echo Updating SpaceNinjaServer...
|
echo Updating SpaceNinjaServer...
|
||||||
|
echo.
|
||||||
git pull
|
git pull
|
||||||
|
echo.
|
||||||
|
|
||||||
if exist static\data\0\ (
|
if exist static\data\0\ (
|
||||||
echo Updating stripped assets...
|
echo Updating stripped assets...
|
||||||
cd static\data\0\
|
cd static\data\0\
|
||||||
|
echo.
|
||||||
git pull
|
git pull
|
||||||
|
echo.
|
||||||
cd ..\..\..\
|
cd ..\..\..\
|
||||||
)
|
)
|
||||||
|
|
||||||
echo Updating dependencies...
|
echo Updating dependencies...
|
||||||
call npm i
|
call npm i
|
||||||
|
echo.
|
||||||
|
|
||||||
|
echo Building files...
|
||||||
call npm run build
|
call npm run build
|
||||||
|
|
||||||
|
echo Starting SpaceNinjaServer...
|
||||||
call npm run start
|
call npm run start
|
||||||
|
|
||||||
|
echo.
|
||||||
|
echo.
|
||||||
|
title Error - SpaceNinjaServer
|
||||||
|
color 0C
|
||||||
echo SpaceNinjaServer seems to have crashed.
|
echo SpaceNinjaServer seems to have crashed.
|
||||||
:a
|
:crashMsg
|
||||||
pause > nul
|
pause > nul
|
||||||
goto a
|
goto crashMsg
|
||||||
|
Loading…
x
Reference in New Issue
Block a user