From 4b20abc38910e98d80234e9211bc366305ee094f Mon Sep 17 00:00:00 2001 From: Sanskar Tiwari Date: Sat, 20 May 2023 19:37:01 +0530 Subject: [PATCH] add batch file to update and start --- UpdateAndStart.bat | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 UpdateAndStart.bat diff --git a/UpdateAndStart.bat b/UpdateAndStart.bat new file mode 100644 index 000000000..261f13c33 --- /dev/null +++ b/UpdateAndStart.bat @@ -0,0 +1,16 @@ +@echo off +pushd %~dp0 +git --version > nul 2>&1 +if %errorlevel% neq 0 ( + echo Git is not installed on this system. Skipping update. +) else ( + call git pull + if %errorlevel% neq 0 ( + REM incase we get merge conflicts or something + echo There were errors while updating. Please download the latest version manually. + ) +) +call npm install +node server.js +pause +popd \ No newline at end of file