From f551f354fc79eb9c7adb616339f17f28952651f9 Mon Sep 17 00:00:00 2001 From: Animan8000 Date: Mon, 20 Jan 2025 13:20:07 +0100 Subject: [PATCH] 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 --- UPDATE AND START SERVER.bat | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/UPDATE AND START SERVER.bat b/UPDATE AND START SERVER.bat index 12cb0572..81bfba13 100644 --- a/UPDATE AND START SERVER.bat +++ b/UPDATE AND START SERVER.bat @@ -1,22 +1,34 @@ @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. -:a +:crashMsg pause > nul -goto a +goto crashMsg